CVE-2009-3002

Linux Kernel < 2.6.31 - Information Disclosure via Uninitialized Memory in getname Functions

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2009-3002. PoCs published by Jon Oberheide, Clément Lecigne.

AI-analyzed exploit summary This exploit demonstrates an information leak vulnerability in Linux Kernel < 2.6.31-rc7 by calling getsockname on an AF_IRDA socket, which discloses 29 bytes of kernel stack memory. The PoC continuously calls getsockname while performing random syscalls to make the stack content more interesting.

Description

The Linux kernel before 2.6.31-rc7 does not initialize certain data structures within getname functions, which allows local users to read the contents of some kernel memory locations by calling getsockname on (1) an AF_APPLETALK socket, related to the atalk_getname function in net/appletalk/ddp.c; (2) an AF_IRDA socket, related to the irda_getname function in net/irda/af_irda.c; (3) an AF_ECONET socket, related to the econet_getname function in net/econet/af_econet.c; (4) an AF_NETROM socket, related to the nr_getname function in net/netrom/af_netrom.c; (5) an AF_ROSE socket, related to the rose_getname function in net/rose/af_rose.c; or (6) a raw CAN socket, related to the raw_getname function in net/can/raw.c.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Jon Oberheide · clocallinux
https://www.exploit-db.com/exploits/9543

This exploit demonstrates an information leak vulnerability in Linux Kernel < 2.6.31-rc7 by calling getsockname on an AF_IRDA socket, which discloses 29 bytes of kernel stack memory. The PoC continuously calls getsockname while performing random syscalls to make the stack content more interesting.

Classification
Working Poc 100%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Linux Kernel < 2.6.31-rc7
No auth needed
Prerequisites: Local access to the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by Clément Lecigne · clocallinux
https://www.exploit-db.com/exploits/9521

This exploit leverages a kernel stack disclosure vulnerability in Linux kernels <= 2.6.30 via AppleTalk's getsockname() function to leak 8 bytes of kernel memory. It uses randomized syscalls and socket operations to trigger the leak and dumps the disclosed memory contents.

Classification
Working Poc 100%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Linux kernel <= 2.6.30
No auth needed
Prerequisites: AppleTalk support enabled in the kernel · AF_APPLETALK socket access
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (24)

Core 24
Core References
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/512019/100/0/threaded
Third Party Advisory vendor-advisory x_refsource_redhat
https://rhn.redhat.com/errata/RHSA-2009-1540.html
Third Party Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-852-1
Exploit, Issue Tracking, Third Party Advisory x_refsource_confirm
https://bugzilla.redhat.com/show_bug.cgi?id=519305
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/37351
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2009-11/msg00007.html
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2010-02/msg00005.html
Exploit, Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/36150
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2009/08/27/1
Third Party Advisory vendor-advisory x_refsource_redhat
https://rhn.redhat.com/errata/RHSA-2009-1550.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/36438
Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/9521
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2009-11/msg00005.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/37105
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2009/08/27/2

Scores

EPSS 0.0103
EPSS Percentile 59.1%

Details

CWE
CWE-200
Status published
Products (6)
canonical/ubuntu_linux 6.06
canonical/ubuntu_linux 8.04
canonical/ubuntu_linux 8.10
canonical/ubuntu_linux 9.04
linux/linux_kernel 2.6.31 (7 CPE variants)
linux/linux_kernel < 2.6.31
Published Aug 28, 2009
Tracked Since Feb 18, 2026