# CVE-2025-21635: rds: sysctl: rds_tcp_{rcv,snd}buf: 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-01-19T10:17:53.832Z
- Modified: 2026-10-30T13:17:50.720Z
- 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:

rds: sysctl: rds_tcp_{rcv,snd}buf: 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 per-netns structure can be obtained from the table->data using
container_of(), then the 'net' one can be retrieved from the listen
socket (if available).

(As written by CVE List.)

## Affected

- Linux Linux: from c6a58ffed53612be86b758df1cdb0b0f4305e9cb before 6f353c2230c199f343406c08482940ec5d8ba89c; from c6a58ffed53612be86b758df1cdb0b0f4305e9cb before 33b3e09a489a31b30342b77cc55290f025d95c7e; from c6a58ffed53612be86b758df1cdb0b0f4305e9cb before de8d6de0ee27be4b2b1e5b06f04aeacbabbba492; from c6a58ffed53612be86b758df1cdb0b0f4305e9cb before 7f5611cbc4871c7fb1ad36c2e5a9edad63dca95c; 4.6 (not affected: before 4.6; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.10 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 4.6 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/6f353c2230c199f343406c08482940ec5d8ba89c>
- <https://git.kernel.org/stable/c/33b3e09a489a31b30342b77cc55290f025d95c7e>
- <https://git.kernel.org/stable/c/de8d6de0ee27be4b2b1e5b06f04aeacbabbba492> (patch)
- <https://git.kernel.org/stable/c/7f5611cbc4871c7fb1ad36c2e5a9edad63dca95c> (patch)

## Sources

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

---

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