Skip to main content
Network Thinking Solutions Logo

CVE-2025-21640

Linux kernel: sctp: sysctl: cookie_hmac_alg: avoid using current->nsproxy

All CVEs
CVE-2025-21640Published 1/19/2025

Linux kernel: sctp: sysctl: cookie_hmac_alg: avoid using current->nsproxy

Vendor advisory
CVSS7.1High

Overview

In the Linux kernel, the following vulnerability has been resolved: sctp: sysctl: cookie_hmac_alg: avoid using current->nsproxy As mentioned in a previous commit of this series, using the 'net' structure via 'current' is not recommended for different reasons: - Inconsistency: getting info from the reader's/writer's netns vs only from the opener's netns. - current->nsproxy can be NULL in some cases, resulting in an 'Oops' (null-ptr-deref), e.g. when the current task is exiting, as spotted by syzbot [1] using acct(2). The 'net' structure can be obtained from the table->data using container_of(). Note that table->data could also be used directly, as this is the only member needed from the 'net' structure, but that would increase the size of this fix, to use '*data' everywhere 'net->sctp.sctp_hmac_alg' is used.

Published
1/19/2025
Last modified
10/15/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 3.8, < 6.1.125

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.72

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.10

Verify advisory

Source
linux kernel
linux
6.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < 5599b212d2f4466e1832a94e9932684aaa364587

Verify advisory

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < 03ca51faba2b017bf6c90e139434c4117d0afcdc

Verify advisory

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < 86ddf8118123cb58a0fb8724cad6979c4069065b

Verify advisory

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < 3cd0659deb9c03535fd61839e91d4d4d3e51ac71

Verify advisory

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < ad673e514b2793b8d5902f6ba6ab7e890dea23d5

Verify advisory

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < f0bb3935470684306e4e04793a20ac4c4b08de0b

Verify advisory

Source
Linux
Linux
≥ 3c68198e75111a905ac2412be12bf7b29099729b, < ea62dd1383913b5999f3d16ae99d411f41b528d4

Verify advisory

Source
Linux
Linux
3.8

Verify advisory

Source
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Siemens
< *

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.1. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.