CVE-2025-21638

Source
https://cve.org/CVERecord?id=CVE-2025-21638
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21638.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21638
Downstream
Related
Published
2025-01-19T10:17:56.084Z
Modified
2026-03-20T12:40:37.971171Z
Summary
sctp: sysctl: auth_enable: avoid using current->nsproxy
Details

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

sctp: sysctl: auth_enable: 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, but that would increase the size of this fix, while 'sctp.ctl_sock' still needs to be retrieved from 'net' structure.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21638.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b14878ccb7fac0242db82720b784ab62c467c0dc
Fixed
cf387cdebfaebae228dfba162f94c567a67610c3
Fixed
dc583e7e5f8515ca489c0df28e4362a70eade382
Fixed
bd2a2939423566c654545fa3e96a656662a0af9e
Fixed
1b67030d39f2b00f94ac1f0af11ba6657589e4d3
Fixed
7ec30c54f339c640aa7e49d7e9f7bbed6bd42bf6
Fixed
c184bc621e3cef03ac9ba81a50dda2dae6a21d36
Fixed
15649fd5415eda664ef35780c2013adeb5d9c695
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
e5eae4a0511241959498b180fa0df0d4f1b11b9c
Last affected
88830f227a1f96e44d82ddfcb0cc81d517ec6dd8
Last affected
3938b0336a93fa5faa242dc9e5823ac69df9e066

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21638.json"