PT-2026-163247
CVE-2026-139206
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 3.1
7.1
HighMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
In the Linux kernel, the following vulnerability has been resolved:
net/sched: etf: initialise the sock exterr skb before filling it
report sock error() clones the transmitted skb, overlays a
struct sock exterr skb on its control block and fills in the seven
struct sock extended err fields, but never clears addr offset and port.
skb clone() copies cb[] verbatim, so the errqueue entry carries the TX
skb's stale control block to the receive side, and the ipv4 error-queue
reader trusts those bytes:
net/ipv4/ip sockglue.c:556
sin->sin addr.s addr = *( be32 *)(skb network header(skb) +
serr->addr offset);
sin->sin port = serr->port;
The gate that is supposed to guard that read only asks whether an
address was requested at all:
net/ipv4/ip sockglue.c:484
return serr->ee.ee origin == SO EE ORIGIN ICMP ||
serr->ee.ee origin == SO EE ORIGIN LOCAL || serr->port;
SO EE ORIGIN TXTIME is neither ICMP nor LOCAL, so for sch etf the gate is
decided by serr->port alone -- by the stale byte pair. When it is
non-zero the reader dereferences skb network header() + addr offset with
an arbitrary offset. On the TCP path cb[40..44) is not zero: the
transmit path stored delivered mstamp there (tcp rate skb sent()), which
is exactly where addr offset/port sit in the arm64 struct layout.
Reached with an unmodified 7.3-rc4 (arm64, KASAN, in-tree modules): a TCP
socket enables TX-timestamp error reporting (SO TXTIME with
SOF TXTIME REPORT ERRORS), a sch etf qdisc drops the packet, and a
recvmsg() reaches ip recv error():
BUG: KASAN: slab-out-of-bounds in ip recv error+0x970/0xa0c
Read of size 4 at addr ffff0000158ffdd5 by task A-227-A227-1 S2/113
ip recv error+0x970/0xa0c
inet recv error+0x94/0xdc
tcp recvmsg+0x378/0x408
...
The buggy address is located 149 bytes to the right of
allocated 704-byte region
Zero the whole overlay rather than the two fields individually: the
errqueue entry is handed to the receive side as a self-contained record,
which is what every other producer in the tree already does (sch etf was
the only error-queue producer that cleared neither field). This does not
change what the in-tree selftest observes -- so txtime.c reads only
ee origin/ee errno/ee code/ee data/ee info, never msg name or sin port.
Found an issue in the description? Have something to add? Feel free to write us 👾