CVE-2025-21635
JSON

5.5medium

rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
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).

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 4.6 before 6.12.10, 6.13NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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).

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: rds: sysctl: rds_tcp_{rcv,snd}buf: evitar usar current->nsproxy Como se mencionó en un commit anterior de esta serie, no se recomienda usar la estructura 'net' a través de 'current' por diferentes razones: - Inconsistencia: obtener información de los netns del lector/escritor vs solo de los netns del abridor. - current->nsproxy puede ser NULL en algunos casos, lo que resulta en un 'Oops' (null-ptr-deref), p. ej. cuando la tarea actual está saliendo, como lo detectó syzbot [1] usando acct(2). La estructura per-netns se puede obtener de table->data usando Container_of(), luego la 'net' se puede recuperar del socket de escucha (si está disponible).

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21635 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-21635 changed 2026-10-30Public domain