CVE-2026-139206
published high CVSS 3.1 · 7.1net/sched: etf: initialise the sock_exterr_skb before filling it
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4b15c7075352668d4467ced7594b676707d11cae to < cf171f9d765027e189264eff3fde09f9e6089370 · 4b15c7075352668d4467ced7594b676707d11cae to < fd01ed96c286cadf51137e7b7ffc15b4cea16547 · 4b15c7075352668d4467ced7594b676707d11cae to < 577a60149f05b84bf908abb5009ddf7223368cf3 · 4b15c7075352668d4467ced7594b676707d11cae to < 5ca63981668e3e944a26a3dfb916d45179e985e2 · 4b15c7075352668d4467ced7594b676707d11cae to < f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7 · 4b15c7075352668d4467ced7594b676707d11cae to < 021567d09653ecb3dea330a5f8659199038e65d4 · 4b15c7075352668d4467ced7594b676707d11cae to < 18f6c145a2fdaf002524935333f5787456dadf7a · 4b15c7075352668d4467ced7594b676707d11cae to < 7076f684d5132e6a6145e1da2fa74771ecd052e5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.19 (affected) · 0 to < 4.19 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The bad addr_offset/port are stale tcp_skb_cb.tx.delivered_mstamp bytes from the local TCP socket's own retransmit clone. sch_etf report_sock_error() queues them and the same local user reads them back via recvmsg(MSG_ERRQUEUE) -> inet_recv_error() -> ip_recv_error()/ipv6_recv_error(). No remote protocol carries the bad data or receives the disclosure. AC:L - The attacker does every step: sends TCP data while the qdisc is normal (tcp_rate_skb_sent stores delivered_mstamp), drops ACKs in their own netns, replaces the qdisc with etf, sets SO_TXTIME with REPORT_ERRORS, and lets RTO retransmit. The EINVAL drop always queues the stale cb, and the low 16 bits (offset) track the microsecond clock. PR:L - RTM_NEWQDISC only checks netlink_net_capable(CAP_NET_ADMIN), and SO_TXTIME with non-MONOTONIC clocks checks CAP_NET_ADMIN against the netns owner, so unshare -Urn is enough. On hosts already running etf, SO_TXTIME with CLOCK_MONOTONIC and REPORT_ERRORS needs no capability, and the clockid mismatch triggers report_sock_error(). UI:N - No victim action is needed; the attacker's own setsockopt(SO_TXTIME), send() and recvmsg(MSG_ERRQUEUE) on their own TCP socket produce and read the bad errqueue entry. S:U - The out-of-bounds read happens in the kernel on behalf of the calling process and exposes kernel memory; no hypervisor, IOMMU or other separate authority is crossed. C:H - ip_recv_error() copies the 4 bytes at skb_network_header()+u16 addr_offset into sin_addr; ipv6_recv_error() copies 16-byte sin6_addr plus flowinfo. That is up to 64 KiB past the 704-byte skbuff_small_head object. It can be repeated over many connections and steered by timing, leaking other sockets' packet heads, nearby pages and kernel pointers. I:N - The bug is a read only: the stale addr_offset is used to read memory into msg_name, and nothing is written through it or anywhere else. A:H - The read can land anywhere in a 64 KiB window past the slab object, as the slab-out-of-bounds KASAN report in the fix shows. If that window reaches a page removed from the direct map (e.g. memfd_secret pages, on by default here), ip_recv_error() faults and the kernel oopses.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4b15c7075352668d4467ced7594b676707d11cae to < cf171f9d765027e189264eff3fde09f9e6089370 (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < fd01ed96c286cadf51137e7b7ffc15b4cea16547 (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < 577a60149f05b84bf908abb5009ddf7223368cf3 (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < 5ca63981668e3e944a26a3dfb916d45179e985e2 (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7 (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < 021567d09653ecb3dea330a5f8659199038e65d4 (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < 18f6c145a2fdaf002524935333f5787456dadf7a (affected · git)4b15c7075352668d4467ced7594b676707d11cae to < 7076f684d5132e6a6145e1da2fa74771ecd052e5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.19 (affected)0 to < 4.19 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/021567d09653ecb3dea330a5f8659199038e65d4
- https://git.kernel.org/stable/c/18f6c145a2fdaf002524935333f5787456dadf7a
- https://git.kernel.org/stable/c/577a60149f05b84bf908abb5009ddf7223368cf3
- https://git.kernel.org/stable/c/5ca63981668e3e944a26a3dfb916d45179e985e2
- https://git.kernel.org/stable/c/7076f684d5132e6a6145e1da2fa74771ecd052e5
- https://git.kernel.org/stable/c/cf171f9d765027e189264eff3fde09f9e6089370
- https://git.kernel.org/stable/c/f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7
- https://git.kernel.org/stable/c/fd01ed96c286cadf51137e7b7ffc15b4cea16547
Provider assertions
1Linux · cna
net/sched: etf: initialise the sock_exterr_skb before filling it
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b8028f6535630665bcb2677cb4f8b3b8f8f6597141ce3d2c182a2fee4e20e078
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record