CVE-2009-2695: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-jh8r-4ff3-92j9
CWE-119
Published
Advisory Summary

CVE-2009-2695 is a HIGH security vulnerability vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.. Remediation is available in the latest vendor maintenance releases.

CVE-2009-2695 at a Glance

CVE Identifier CVE-2009-2695
GHSA Identifier GHSA-jh8r-4ff3-92j9
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2009-2695

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2009-2695, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The Linux kernel before 2.6.31-rc7 does not properly prevent mmap operations that target page zero and other low memory addresses, which allows local users to gain privileges by exploiting NULL pointer dereference vulnerabilities, related to (1) the default configuration of the allow_unconfined_mmap_low boolean in SELinux on Red Hat Enterprise Linux (RHEL) 5, (2) an error that causes allow_unconfined_mmap_low to be ignored in the unconfined_t domain, (3) lack of a requirement for the CAP_SYS_RAWIO capability for these mmap operations, and (4) interaction between the mmap_min_addr protection mechanism and certain application programs.

References

NVD — CVE-2009-2695 NVD
https://nvd.nist.gov/vuln/detail/CVE-2009-2695
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=511143
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=517830
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7144
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9882
rhn.redhat.com/errata/rhsa-2009-15... WEB
https://rhn.redhat.com/errata/RHSA-2009-1540.html
rhn.redhat.com/errata/rhsa-2009-15... WEB
https://rhn.redhat.com/errata/RHSA-2009-1548.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2009-August/msg01256.html
danwalsh.livejournal.com/30084.html WEB
http://danwalsh.livejournal.com/30084.html
eparis.livejournal.com/606.html WEB
http://eparis.livejournal.com/606.html
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=47d439e9fb8a81a90022cfa785bf1c36c4e2aff6
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=7c73875e7dda627040b12c19b01db634fa7f0fd1
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=84336d1a77ccd2c06a730ddd38e695c2324a7386
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=a2551df7ec568d87793d2eea4ca744e86318f205
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=47d439e9fb8a81a90022cfa785bf1c36c4e2aff6
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=7c73875e7dda627040b12c19b01db634fa7f0fd1
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=84336d1a77ccd2c06a730ddd38e695c2324a7386
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=a2551df7ec568d87793d2eea4ca744e86318f205
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=1d9959734a1949ea4f2427bd2d8b21ede6b2441c
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=788084aba2ab7348257597496befcbccabdc98a3
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=8cf948e744e0218af604c32edecde10006dc8e9e
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=9c0d90103c7e0eb6e638e5b649e9f6d8d9c1b4b3
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=ab5a91a8364c3d6fc617abc47cc81d162c01d90a
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1d9959734a1949ea4f2427bd2d8b21ede6b2441c
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=788084aba2ab7348257597496befcbccabdc98a3
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8cf948e744e0218af604c32edecde10006dc8e9e
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9c0d90103c7e0eb6e638e5b649e9f6d8d9c1b4b3
git.kernel.org/ WEB
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ab5a91a8364c3d6fc617abc47cc81d162c01d90a
kbase.redhat.com/faq/docs/doc-18042 WEB
http://kbase.redhat.com/faq/docs/DOC-18042
Software Security Information SECURITY
http://lists.vmware.com/pipermail/security-announce/2010/000082.html
patchwork.kernel.org/patch/36539 WEB
http://patchwork.kernel.org/patch/36539
patchwork.kernel.org/patch/36540 WEB
http://patchwork.kernel.org/patch/36540
patchwork.kernel.org/patch/36649 WEB
http://patchwork.kernel.org/patch/36649
patchwork.kernel.org/patch/36650 WEB
http://patchwork.kernel.org/patch/36650
secunia.com/advisories/36501 WEB
http://secunia.com/advisories/36501
secunia.com/advisories/37105 WEB
http://secunia.com/advisories/37105
secunia.com/advisories/38794 WEB
http://secunia.com/advisories/38794
secunia.com/advisories/38834 WEB
http://secunia.com/advisories/38834
thread.gmane.org/gmane.linux.kernel.... WEB
http://thread.gmane.org/gmane.linux.kernel.lsm/9075
twitter.com/spendergrsec/status... WEB
http://twitter.com/spendergrsec/statuses/3303390960
Software Security Information SECURITY
http://www.debian.org/security/2010/dsa-2005
www.kernel.org/pub/linux/kernel/v2... WEB
http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.31-rc7
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2009/08/17/4
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2009-1672.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/36051
www.ubuntu.com/usn/usn-852-1 WEB
http://www.ubuntu.com/usn/USN-852-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2010/0528

Frequently Asked Questions

What is CVE-2009-2695?
CVE-2009-2695 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2009-2695?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2009-2695?
CVE-2009-2695 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2009-2695?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jh8r-4ff3-92j9",
  "modified" : "2025-04-09T04:13:37Z",
  "published" : "2022-05-02T03:37:50Z",
  "aliases" : [ "CVE-2009-2695" ],
  "details" : "The Linux kernel before 2.6.31-rc7 does not properly prevent mmap operations that target page zero and other low memory addresses, which allows local users to gain privileges by exploiting NULL pointer dereference vulnerabilities, related to (1) the default configuration of the allow_unconfined_mmap_low boolean in SELinux on Red Hat Enterprise Linux (RHEL) 5, (2) an error that causes allow_unconfined_mmap_low to be ignored in the unconfined_t domain, (3) lack of a requirement for the CAP_SYS_RAWIO capability for these mmap operations, and (4) interaction between the mmap_min_addr protection mechanism and certain application programs.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2009-2695"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=511143"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=517830"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7144"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9882"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2009-1540.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2009-1548.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2009-August/msg01256.html"
  }, {
    "type" : "WEB",
    "url" : "http://danwalsh.livejournal.com/30084.html"
  }, {
    "type" : "WEB",
    "url" : "http://eparis.livejournal.com/606.html"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=47d439e9fb8a81a90022cfa785bf1c36c4e2aff6"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=7c73875e7dda627040b12c19b01db634fa7f0fd1"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=84336d1a77ccd2c06a730ddd38e695c2324a7386"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git%3Ba=commit%3Bh=a2551df7ec568d87793d2eea4ca744e86318f205"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=47d439e9fb8a81a90022cfa785bf1c36c4e2aff6"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=7c73875e7dda627040b12c19b01db634fa7f0fd1"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=84336d1a77ccd2c06a730ddd38e695c2324a7386"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/jmorris/security-testing-2.6.git;a=commit;h=a2551df7ec568d87793d2eea4ca744e86318f205"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=1d9959734a1949ea4f2427bd2d8b21ede6b2441c"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=788084aba2ab7348257597496befcbccabdc98a3"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=8cf948e744e0218af604c32edecde10006dc8e9e"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=9c0d90103c7e0eb6e638e5b649e9f6d8d9c1b4b3"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=ab5a91a8364c3d6fc617abc47cc81d162c01d90a"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1d9959734a1949ea4f2427bd2d8b21ede6b2441c"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=788084aba2ab7348257597496befcbccabdc98a3"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8cf948e744e0218af604c32edecde10006dc8e9e"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9c0d90103c7e0eb6e638e5b649e9f6d8d9c1b4b3"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ab5a91a8364c3d6fc617abc47cc81d162c01d90a"
  }, {
    "type" : "WEB",
    "url" : "http://kbase.redhat.com/faq/docs/DOC-18042"
  }, {
    "type" : "WEB",
    "url" : "http://lists.vmware.com/pipermail/security-announce/2010/000082.html"
  }, {
    "type" : "WEB",
    "url" : "http://patchwork.kernel.org/patch/36539"
  }, {
    "type" : "WEB",
    "url" : "http://patchwork.kernel.org/patch/36540"
  }, {
    "type" : "WEB",
    "url" : "http://patchwork.kernel.org/patch/36649"
  }, {
    "type" : "WEB",
    "url" : "http://patchwork.kernel.org/patch/36650"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/36501"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/37105"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/38794"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/38834"
  }, {
    "type" : "WEB",
    "url" : "http://thread.gmane.org/gmane.linux.kernel.lsm/9075"
  }, {
    "type" : "WEB",
    "url" : "http://twitter.com/spendergrsec/statuses/3303390960"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2010/dsa-2005"
  }, {
    "type" : "WEB",
    "url" : "http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.31-rc7"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2009/08/17/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2009-1672.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/36051"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-852-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2010/0528"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2009-08-28T15:30:00Z"
  }
}