{"id":"CVE-2025-21635","aliases":["CVE-2025-21635"],"related":[],"kind":"vulnerability","state":"published","title":"rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy\n\nAs mentioned in a previous commit of this series, using the 'net'\nstructure via 'current' is not recommended for different reasons:\n\n- Inconsistency: getting info from the reader's/writer's netns vs only\n  from the opener's netns.\n\n- current->nsproxy can be NULL in some cases, resulting in an 'Oops'\n  (null-ptr-deref), e.g. when the current task is exiting, as spotted by\n  syzbot [1] using acct(2).\n\nThe per-netns structure can be obtained from the table->data using\ncontainer_of(), then the 'net' one can be retrieved from the listen\nsocket (if available).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy\n\nAs mentioned in a previous commit of this series, using the 'net'\nstructure via 'current' is not recommended for different reasons:\n\n- Inconsistency: getting info from the reader's/writer's netns vs only\n  from the opener's netns.\n\n- current->nsproxy can be NULL in some cases, resulting in an 'Oops'\n  (null-ptr-deref), e.g. when the current task is exiting, as spotted by\n  syzbot [1] using acct(2).\n\nThe per-netns structure can be obtained from the table->data using\ncontainer_of(), then the 'net' one can be retrieved from the listen\nsocket (if available).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: rds: sysctl: rds_tcp_{rcv,snd}buf: evitar usar current-&gt;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-&gt;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-&gt;data usando Container_of(), luego la 'net' se puede recuperar del socket de escucha (si está disponible).","source":"nvd"}],"published":"2025-01-19T10:17:53.832Z","modified":"2026-10-30T13:17:50.720Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"c6a58ffed53612be86b758df1cdb0b0f4305e9cb","fixed":"6f353c2230c199f343406c08482940ec5d8ba89c","status":"affected"},{"type":"git","introduced":"c6a58ffed53612be86b758df1cdb0b0f4305e9cb","fixed":"33b3e09a489a31b30342b77cc55290f025d95c7e","status":"affected"},{"type":"git","introduced":"c6a58ffed53612be86b758df1cdb0b0f4305e9cb","fixed":"de8d6de0ee27be4b2b1e5b06f04aeacbabbba492","status":"affected"},{"type":"git","introduced":"c6a58ffed53612be86b758df1cdb0b0f4305e9cb","fixed":"7f5611cbc4871c7fb1ad36c2e5a9edad63dca95c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.10","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.6","fixed":"6.12.10"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6f353c2230c199f343406c08482940ec5d8ba89c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33b3e09a489a31b30342b77cc55290f025d95c7e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de8d6de0ee27be4b2b1e5b06f04aeacbabbba492","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f5611cbc4871c7fb1ad36c2e5a9edad63dca95c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:54:16.928Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21635","url":"https://www.cve.org/CVERecord?id=CVE-2025-21635","licence":"CVE Terms of Use","modified":"2026-10-30T12:20:39.557Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21635","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21635","licence":"Public domain","modified":"2026-10-30T13:17:50.720Z"}],"updatedAt":"2026-11-25T22:58:53.427Z","epss":{"score":0.00256,"percentile":0.18369,"date":"2026-12-01T12:00:22.000Z"}}