Skip to contentSkip to conversation

CVE-2026-99064: cipso: adjust cached option offsets when removing CIPSO

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

cipso: adjust cached option offsets when removing CIPSO

cipso_v4_skbuff_delattr() removes the CIPSO bytes but does not adjust cached offsets for options that follow them.

For example, with a valid 10-byte CIPSO option followed by a seven-byte RR option, parsing records rr at offset 30. Removing CIPSO moves RR to offset 20, while the cached offset remains 30. Consumers such as ip_forward_options() and __ip_options_echo() then access the wrong bytes; the latter may interpret packet data as the option length and copy it into fixed-size option storage.

Mirror cipso_v4_delopt() and subtract cipso_len from the srr, rr, ts and router_alert offsets when they follow CIPSO. cipso_len is the distance the first memmove() shifts those options. The later header move and network-header reset relocate the bytes and their offset base together.

The Linux kernel CVE team has assigned CVE-2026-99064 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit 89aa3619d141d6cfb6040a561aebb6d99d3e2285 and fixed in 6.12.113 with commit b965977126a90e01825814c859ba4788691eddd3
	Issue introduced in 6.10 with commit 89aa3619d141d6cfb6040a561aebb6d99d3e2285 and fixed in 6.18.57 with commit 2200fe1d6148b78e1b8f00f4b2bd47760015077f
	Issue introduced in 6.10 with commit 89aa3619d141d6cfb6040a561aebb6d99d3e2285 and fixed in 7.2.11 with commit 6e49d611a9cfbaac927b8fa80ebd4f6b1f37ada0
	Issue introduced in 6.10 with commit 89aa3619d141d6cfb6040a561aebb6d99d3e2285 and fixed in 7.3 with commit 6d25ffca055a77787c21a36b66c253f76239411b

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-99064

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/ipv4/cipso_ipv4.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/b965977126a90e01825814c859ba4788691eddd3
	https://git.kernel.org/stable/c/2200fe1d6148b78e1b8f00f4b2bd47760015077f
	https://git.kernel.org/stable/c/6e49d611a9cfbaac927b8fa80ebd4f6b1f37ada0
	https://git.kernel.org/stable/c/6d25ffca055a77787c21a36b66c253f76239411b