Description
The sock_getsockopt function in net/core/sock.c in the Linux kernel before 2.6.28.6 does not initialize a certain structure member, which allows local users to obtain potentially sensitive information from kernel memory via an SO_BSDCOMPAT getsockopt request.
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-13lenny2 | DSA-1749-1 |
| Debian 4.0 | fai-kernels | 1.17+etch.24etch2 | DSA-1794-1 |
| Debian 4.0 | linux-2.6 | 2.6.18.dfsg.1-24etch2 | DSA-1794-1 |
| Debian 4.0 | linux-2.6.24 | 2.6.24-6~etchnhalf.8etch1 | DSA-1787-1 |
| Debian 4.0 | user-mode-linux | 2.6.18-1um-2etch.24etch2 | DSA-1794-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | kernel +12 | 2.6.18-128.1.6.el5 | RHSA-2009:0326 |
| RHEL 4 | kernel +10 | 2.6.9-78.0.22.EL | RHSA-2009:0459 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat MRG 1 | kernel-rt +9 | 2.6.24.7-108.el5rt | RHSA-2009:0360 |
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.x - 'sock.c' SO_BSDCOMPAT Option Information Disclosure EDB-32805 · local · Feb 20, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 6
- RHSA-2009:0326 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2009:0459 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1787-1 linux-2.6.24 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1749-1 linux-2.6 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1794-1 linux-2.6 - multiple vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- RHSA-2009:0360 Red Hat Security Advisory: kernel-rt security and bug fix update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- 35390 third-party-advisory
- kernel-sock-information-disclosure(48847) vdb-entry
- [oss-security] 20090220 CVE request: kernel: memory disclosure in SO_BSDCOMPAT gsopt mailing-list
- 34502 third-party-advisory
- RHSA-2009:0326 vendor-advisory
- 34786 third-party-advisory
- 34962 third-party-advisory
- oval:org.mitre.oval:def:8618 vdb-entry signature
- 37471 third-party-advisory
- RHSA-2009:0360 vendor-advisory
- RHSA-2009:0459 vendor-advisory
- [oss-security] 20090302 Re: CVE request: kernel: memory disclosure in SO_BSDCOMPAT gsopt mailing-list
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- DSA-1749 vendor-advisory
- http://patchwork.kernel.org/patch/6816/
- DSA-1794 vendor-advisory
- [linux-kernel] 20090223 net: amend the fix for SO_BSDCOMPAT gsopt infoleak mailing-list
- 33758 third-party-advisory
- SUSE-SA:2009:030 vendor-advisory
- USN-751-1 vendor-advisory
- oval:org.mitre.oval:def:11653 vdb-entry signature
- 33846 vdb-entry
- 35011 third-party-advisory
- 20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components mailing-list
- [oss-security] 20090224 Re: CVE request: kernel: memory disclosure in SO_BSDCOMPAT gsopt mailing-list
- SUSE-SA:2009:031 vendor-advisory
- SUSE-SA:2009:021 vendor-advisory
- [linux-kernel] 20090212 [PATCH] 4 bytes kernel memory disclosure in SO_BSDCOMPAT gsopt try #2 mailing-list
- 34981 third-party-advisory
- 34394 third-party-advisory
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=df0bca049d01c0ee94afb7cd5dfd959541e6c8da
- https://bugzilla.redhat.com/show_bug.cgi?id=486305
- DSA-1787 vendor-advisory
- MDVSA-2009:071 vendor-advisory
- 34680 third-party-advisory
- ADV-2009-3316 vdb-entry
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.28.6
- 35394 third-party-advisory