7.8high
ipmr: only copy pktinfo to cache reports
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2a9df39afb332035eceb5d793d18193386e79dc9, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 91b7d6abf96793b79f4ac5fd0163a1f15aa9b307, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1fc0b66a123f25f0a5965a9cbe8312a37d5afeec, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9b003d5c6e84ffe4593f13ef30605519cf55d54a, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 936d3aa096a9308603aec9a03a8d2e90bdf1509b, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 94a6736bb5abe6b2ef38490d0cab19c1c6a7c71f, 2.6.12 Not affected: before 2.6.12, from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.118 up to 6.12.*, from 6.18.64 up to 6.18.*, from 7.3.4 up to 7.3.* | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-99943 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-99943 changed 2026-12-01 | Public domain |