CVE-2026-139788

cipso: stop modifying live ip_options_rcu

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

cipso: stop modifying live ip_options_rcu

cipso_v4_delopt() operates on the ip_options_rcu of a socket or a request
socket, and tries to remove CIPSO options from the middle by moving all
subsequent options.
That's not allowed - ip_options_rcu can be read locklessly and must always
be consistent. For example, ip_options_undo() reads trusted offsets and
length values from the options buffer.
Fix it by doing the modification in a copy.

The core change is in cipso_v4_delopt(), the rest is ugly plumbing to
propagate memory allocation failures.

Triggering this bug requires that the system is configured to use CIPSO.
(Setting up CIPSO requires privileges in init_user_ns.)

Analysis

AI-generated

Technical impact

The Linux kernel contains a bug in the CIPSO v4 option removal routine. When a socket or request socket is configured to support CIPSO, the function attempts to delete CIPSO options from the middle of the ip_options_rcu buffer by shifting subsequent options. However, ip_options_rcu is designed to be immutable while read‑side code accesses it locklessly; modifying it in place breaks this contract, causing inconsistent data to be read by code such as ip_options_undo(). This inconsistency can lead to memory corruption or system crashes, effectively providing a denial‑of‑service path.

Affected Systems

All Linux kernel builds that enable the CIPSO option on IPv4 can be affected until the patch is applied. The affected versions are not enumerated in the advisory but include any kernel that was released before the commit that fixes the bug was merged. Because the bug requires CIPSO support, any system where the kernel has been compiled with CONFIG_CIPSO enabled is susceptible. No specific distribution or release is mentioned, so the vulnerability potentially applies to every Linux deployment that uses a recent kernel version without the fix.

Risk and Exploitability

The vulnerability is local only; it can only be triggered when CIPSO is enabled, which in turn requires privileges within the init_user_ns. An attacker with sufficient system privileges can force a crash by sending crafted packets that trigger the deletion routine. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, but the lack of a public exploit and the need for privileged access reduce the immediate risk to average users. However, any authenticated user capable of loading or configuring network sockets has the potential to cause a denial of service, which can be especially disruptive in production environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that introduces an immutable copy during deletion, as documented in the provided commits (e.g., commit 1f2c5183f...).
  • If the patch cannot be applied immediately, disable CIPSO support by rebuilding the kernel with CONFIG_CIPSO=n or removing the module and ensuring that kernel networking is configured without CIPSO.
  • As a temporary mitigation on running systems, limit the capability to load or modify CIPSO options by restricting the related capabilities (e.g., via CSD, seccomp, or container isolation).

Generated by OpenCVE AI on December 1, 2026 at 01:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-754
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cipso: stop modifying live ip_options_rcu cipso_v4_delopt() operates on the ip_options_rcu of a socket or a request socket, and tries to remove CIPSO options from the middle by moving all subsequent options. That's not allowed - ip_options_rcu can be read locklessly and must always be consistent. For example, ip_options_undo() reads trusted offsets and length values from the options buffer. Fix it by doing the modification in a copy. The core change is in cipso_v4_delopt(), the rest is ugly plumbing to propagate memory allocation failures. Triggering this bug requires that the system is configured to use CIPSO. (Setting up CIPSO requires privileges in init_user_ns.)
Title cipso: stop modifying live ip_options_rcu
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-665

    Improper Initialization

  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:38 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM