CVE-2026-99943
published high CVSS 3.1 · 7.8ipmr: only copy pktinfo to cache reports
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2a9df39afb332035eceb5d793d18193386e79dc9 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 91b7d6abf96793b79f4ac5fd0163a1f15aa9b307 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1fc0b66a123f25f0a5965a9cbe8312a37d5afeec · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9b003d5c6e84ffe4593f13ef30605519cf55d54a · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 936d3aa096a9308603aec9a03a8d2e90bdf1509b · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94a6736bb5abe6b2ef38490d0cab19c1c6a7c71f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: ipmr: only copy pktinfo to cache reports ipmr_cache_report() prepares IP_PKTINFO on the original skb. The ipv4_pktinfo_prepare() helper updates skb->cb and clears the pktinfo fields when packet info is disabled. Since the skb can continue through the data path, preserve and restore its original control block around the helper. The original implementation copies the entire control block to the report skb. For synthetic RTM_GETROUTE packets, NETLINK_CB data is interpreted as IPCB by the raw IPv4 receive path. With IP_RECVOPTS or IP_RETOPTS enabled, corrupted option offsets cause out-of-bounds reads or a stack buffer overflow. WHOLEPKT and WRVIFWHOLE reports also inherit stale IP option offsets when their header is prepended. Clear the report skb control block. Only prepare and copy pktinfo when the input skb has an IPv4 header. Synthetic route-query skbs use NETLINK_CB, not IPCB, so leave their report control block zeroed. Restore pkt->cb after preparing pktinfo for regular IPv4 packets.
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bad data is the requester's netlink portid, which ipmr_get_route() stores in NETLINK_CB of a synthetic skb from inet_rtm_getroute(). ipmr_cache_report(IGMPMSG_NOCACHE) then copies that cb into the report skb. Triggering needs a local RTM_GETROUTE plus recvmsg() on a local raw IGMP mroute socket. The remote WHOLEPKT variant needs the daemon to set IP_RETOPTS, which I could not show any daemon does. AC:L - The attacker sets every input: portid via netlink bind(nl_pid), which lands on IPCB opt.optlen/rr; RTA_SRC, whose first byte becomes the copy length when rr=11; and the IP_RETOPTS/IP_RECVOPTS sockopts on their own mroute socket. The overflow length and offsets are deterministic, with no race and no outside condition. PR:L - Works after unshare -Urn. The raw IGMP socket needs only CAP_NET_RAW in the namespace. MRT_INIT has no extra capability check, and MRT_ADD_VIF is allowed for the socket that called MRT_INIT. That sets MC_FORWARDING/IN_DEV_MFORWARD, so ip_route_input_mc() and rt_fill_info() call ipmr_get_route(). RTM_GETROUTE is unprivileged. UI:N - No other user takes part. The attacker sends the route query and reads the corrupted report on the mroute socket they created themselves. S:U - A stack overflow in the kernel's own recvmsg cmsg path. This is ordinary kernel memory corruption and does not cross a VM, IOMMU or sandbox boundary. C:H - With IP_RECVOPTS, ip_cmsg_recv_opts() copies up to 255 bytes past the 20-byte report header (opt.optlen comes from the portid) to userspace, repeatedly. That is uninitialised skb-head heap contents, which can include kernel pointers. The stack-overflow primitive could also be chained into wider memory reads. I:H - With IP_RETOPTS, ip_cmsg_recv_retopts() calls __ip_options_echo(), which does memcpy(dptr, sptr+rr, sptr[rr+1]) into the 40-byte __data of a 56-byte stack optbuf. The copy length comes from RTA_SRC and the content from the attacker's header plus groomable heap memory, an overflow of up to about 215 bytes. ip_options_undo() then writes through corrupted offsets. A:H - The stack overflow in ip_cmsg_recv_retopts() trips the stack protector or corrupts saved state and oopses the kernel. Any unprivileged user who can create a user namespace can repeat it at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2a9df39afb332035eceb5d793d18193386e79dc9 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 91b7d6abf96793b79f4ac5fd0163a1f15aa9b307 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1fc0b66a123f25f0a5965a9cbe8312a37d5afeec (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9b003d5c6e84ffe4593f13ef30605519cf55d54a (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 936d3aa096a9308603aec9a03a8d2e90bdf1509b (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94a6736bb5abe6b2ef38490d0cab19c1c6a7c71f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/1fc0b66a123f25f0a5965a9cbe8312a37d5afeec
- https://git.kernel.org/stable/c/2a9df39afb332035eceb5d793d18193386e79dc9
- https://git.kernel.org/stable/c/91b7d6abf96793b79f4ac5fd0163a1f15aa9b307
- https://git.kernel.org/stable/c/936d3aa096a9308603aec9a03a8d2e90bdf1509b
- https://git.kernel.org/stable/c/94a6736bb5abe6b2ef38490d0cab19c1c6a7c71f
- https://git.kernel.org/stable/c/9b003d5c6e84ffe4593f13ef30605519cf55d54a
Provider assertions
1Linux · cna
ipmr: only copy pktinfo to cache reports
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3d657bfaa8c035e025a1a0f563ad4c15edcb4a81aa9f47edb80609fffbe5c7cf
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record