VDB

CVE-2025-21640

CVE-2025-21640 PUBLISHED CVSS 7.1 HIGH

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

Reported by linux · Published January 19, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extra-commonAmazon Linux6.1.127-135.201.amzn2023
perfAmazon Linux6.1.127-135.201.amzn2023
kernel-toolsAmazon Linux6.1.127-135.201.amzn2023
kernel-tools-develAmazon Linux6.1.127-135.201.amzn2023
kernel-headersAmazon Linux6.1.127-135.201.amzn2023
kernel-develAmazon Linux6.1.127-135.201.amzn2023
kernelAmazon Linux6.1.127-135.201.amzn2023
kernel-livepatch-6.1.127-135.201Amazon Linux1.0-0.amzn2023
python3-perfAmazon Linux6.1.127-135.201.amzn2023
kernel-libbpf-staticAmazon Linux6.1.127-135.201.amzn2023
kernel-libbpfAmazon Linux6.1.127-135.201.amzn2023
bpftoolAmazon Linux6.1.127-135.201.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux3c68198e75111a905ac2412be12bf7b29099729b, 3c68198e75111a905ac2412be12bf7b29099729b, 3c68198e75111a905ac2412be12bf7b29099729b
LinuxLinux3.8, 0, 5.4.292
amazon:2023kernel-modules-extra-common0
amazon:2023perf0
amazon:2023kernel-tools0
linuxlinux_kernel3.8, 3.8, 3.8
amazon:2023kernel-tools-devel0
amazon:2023kernel-headers0
amazon:2023kernel-devel0
amazon:2023kernel0
amazon:2023kernel-livepatch-6.1.127-135.2010
amazon:2023python3-perf0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-libbpf0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023bpftool0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-modules-extra0
LinuxLinux3.8, 3c68198e75111a905ac2412be12bf7b29099729b, 3c68198e75111a905ac2412be12bf7b29099729b

Timeline

  • Jan 19, 2025 CVE Published
  • Jan 20, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 13, 2025 Coalition ESS Score (13 in total, the first dated here)
  • Dec 22, 2025 Security Advisory (135 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (129 in total, the first dated here)
  • Nov 9, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21640
vulnetix vdb fixes CVE-2025-21640

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21640/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›