# CVE-2025-21641: mptcp: sysctl: blackhole timeout: avoid using current->nsproxy

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-01-19T10:17:58.351Z
- Modified: 2026-06-17T08:43:54.800Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

mptcp: sysctl: blackhole timeout: avoid using current->nsproxy

As mentioned in the previous commit, 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 'pernet' structure can be obtained from the table->data using
container_of().

(As written by CVE List.)

## Affected

- Linux Linux: from 27069e7cb3d1cea9377069266acf19b9cc5ad0ae before 4c74fbdc5ab95b13945be01e6065940b68222db7; from 27069e7cb3d1cea9377069266acf19b9cc5ad0ae before 92cf7a51bdae24a32c592adcdd59a773ae149289; 6.12 (not affected: before 6.12; from 6.12.10 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.12 before 6.12.10; 6.13

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4c74fbdc5ab95b13945be01e6065940b68222db7> (mailing-list, patch)
- <https://git.kernel.org/stable/c/92cf7a51bdae24a32c592adcdd59a773ae149289> (mailing-list, patch)

## Sources

- CVE List: [CVE-2025-21641](https://www.cve.org/CVERecord?id=CVE-2025-21641), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21641](https://nvd.nist.gov/vuln/detail/CVE-2025-21641), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21641 · Whole record: https://cve.day/CVE-2025-21641.json · Rebuilt by cve.day 2026-11-25T22:58:53.430Z
