CVE-2026-68144: phonet: pep: fix use-after-free in pep_get_sb()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-68144 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.28 with commit 9641458d3ec42def729fde64669abf07f3220cd5 and fixed in 6.6.148 with commit 8d931a75a38b9bb584a4071f5ebbd52755fc35ee Issue introduced in 2.6.28 with commit 9641458d3ec42def729fde64669abf07f3220cd5 and fixed in 6.12.101 with commit 17f78c0c0d41d738ee236eb6e841e39395188054 Issue introduced in 2.6.28 with commit 9641458d3ec42def729fde64669abf07f3220cd5 and fixed in 6.18.42 with commit a48a889b60f73edb0399a8b08284a2ab0bd0295f Issue introduced in 2.6.28 with commit 9641458d3ec42def729fde64669abf07f3220cd5 and fixed in 7.1.6 with commit 25e3641beb51333bfbb155af2fd2573a61113af2 Issue introduced in 2.6.28 with commit 9641458d3ec42def729fde64669abf07f3220cd5 and fixed in 7.2-rc5 with commit 0f71f852a96af9685858ce59fda34ecbf85c283d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-68144
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/phonet/pep.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8d931a75a38b9bb584a4071f5ebbd52755fc35ee https://git.kernel.org/stable/c/17f78c0c0d41d738ee236eb6e841e39395188054 https://git.kernel.org/stable/c/a48a889b60f73edb0399a8b08284a2ab0bd0295f https://git.kernel.org/stable/c/25e3641beb51333bfbb155af2fd2573a61113af2 https://git.kernel.org/stable/c/0f71f852a96af9685858ce59fda34ecbf85c283d