phonet: pep: fix use-after-free in pep_get_sb()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: phonet: pep: fix use-after-free in pep_get_sb() pep_get_sb() doesn't consider that pskb_may_pull() might have relocated the skb data, and continue to access the older pointer, causing UAF. Reproduced under KASAN: BUG: KASAN: slab-use-after-free in pep_get_sb+0x234/0x3b0 Read of size 1 at addr ff11000105510f50 by task repro/157 pep_get_sb+0x234/0x3b0 pipe_handler_do_rcv+0x5f7/0xa10 pep_do_rcv+0x203/0x410 __sk_receive_skb+0x471/0x4a0 phonet_rcv+0x5b3/0x6c0 __netif_receive_skb+0xcc/0x1d0 Refetch the header with skb_header_pointer() after pskb_may_pull(), so the possibly stale pointer is no longer dereferenced. There are better ways to solve this, but, this is the less instrusive one.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in c4a52cb4da8d57d060b1d52085d25147a238dac2; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in df198743859fefba2f824115f8151dd62d7ad6d8; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in 1d81e19fc57a5ee55b4497d01bc0510d76fb9578; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in 8d931a75a38b9bb584a4071f5ebbd52755fc35ee; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in 17f78c0c0d41d738ee236eb6e841e39395188054; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in a48a889b60f73edb0399a8b08284a2ab0bd0295f; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in 25e3641beb51333bfbb155af2fd2573a61113af2; From 9641458d3ec42def729fde64669abf07f3220cd5 · fixed in 0f71f852a96af9685858ce59fda34ecbf85c283d
- Linux Linux
2.6.28
- KernelLinux
From 2.6.28 · fixed in 5.10.265; From 5.11.0 · fixed in 5.15.216; From 5.16.0 · fixed in 6.1.183; From 6.2.0 · fixed in 6.6.148; From 6.7.0 · fixed in 6.12.101; From 6.13.0 · fixed in 6.18.42; From 6.19.0 · fixed in 7.1.6
References 8
git.kernel.org
- stable/c/c4a52cb4da8d57d060b1d52085d25147a238dac2
- stable/c/df198743859fefba2f824115f8151dd62d7ad6d8
- stable/c/1d81e19fc57a5ee55b4497d01bc0510d76fb9578
- stable/c/8d931a75a38b9bb584a4071f5ebbd52755fc35ee
- stable/c/17f78c0c0d41d738ee236eb6e841e39395188054
- stable/c/a48a889b60f73edb0399a8b08284a2ab0bd0295f
- stable/c/25e3641beb51333bfbb155af2fd2573a61113af2
- stable/c/0f71f852a96af9685858ce59fda34ecbf85c283d