Description
The llc_ui_getname function in net/llc/af_llc.c in the Linux kernel 2.6.31-rc7 and earlier does not initialize a certain data structure, which allows local users to read the contents of some kernel memory locations by calling getsockname on an AF_LLC socket.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | linux-2.6 | 2.6.26-19lenny1 | DSA-1915-1 |
| Debian 4.0 | linux-2.6 | 2.6.18.dfsg.1-26etch1 | DSA-1929-1 |
| Debian 4.0 | linux-2.6.24 | 2.6.24-6~etchnhalf.9etch1 | DSA-1928-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Linux Kernel 2.6.31-rc7 - 'AF_LLC getsockname' 5-Byte Stack Disclosure EDB-9513 · local · Aug 25, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- DSA-1929-1 linux-2.6 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1915-1 linux-2.6 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1928-1 linux-2.6.24 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=28e9fc592cb8c7a43e4d3147b38be6032a0e81bc
- [oss-security] 20090826 CVE request: kernel: AF_LLC getsockname 5-Byte Stack Disclosure mailing-list
- USN-852-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=519305
- http://jon.oberheide.org/files/llc-getsockname-leak.c
- 9513 exploit
- linux-kernel-afllcgetsockname-info-disc(52732) vdb-entry
- 36126 vdb-entry
- 37105 third-party-advisory