{"id":"CVE-2025-21640","summary":"sctp: sysctl: cookie_hmac_alg: avoid using current-\u003ensproxy","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: sysctl: cookie_hmac_alg: avoid using current-\u003ensproxy\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-\u003ensproxy 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 'net' structure can be obtained from the table-\u003edata using\ncontainer_of().\n\nNote that table-\u003edata could also be used directly, as this is the only\nmember needed from the 'net' structure, but that would increase the size\nof this fix, to use '*data' everywhere 'net-\u003esctp.sctp_hmac_alg' is\nused.","modified":"2026-04-16T04:35:37.733224003Z","published":"2025-01-19T10:17:57.593Z","related":["SUSE-SU-2025:0784-1","SUSE-SU-2025:0834-1","SUSE-SU-2025:0847-1","SUSE-SU-2025:0856-1","SUSE-SU-2025:0955-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21640.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/03ca51faba2b017bf6c90e139434c4117d0afcdc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3cd0659deb9c03535fd61839e91d4d4d3e51ac71"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5599b212d2f4466e1832a94e9932684aaa364587"},{"type":"WEB","url":"https://git.kernel.org/stable/c/86ddf8118123cb58a0fb8724cad6979c4069065b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ad673e514b2793b8d5902f6ba6ab7e890dea23d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea62dd1383913b5999f3d16ae99d411f41b528d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f0bb3935470684306e4e04793a20ac4c4b08de0b"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21640.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21640"},{"type":"PACKAGE","url":"https://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":"3c68198e75111a905ac2412be12bf7b29099729b"},{"fixed":"5599b212d2f4466e1832a94e9932684aaa364587"},{"fixed":"03ca51faba2b017bf6c90e139434c4117d0afcdc"},{"fixed":"86ddf8118123cb58a0fb8724cad6979c4069065b"},{"fixed":"3cd0659deb9c03535fd61839e91d4d4d3e51ac71"},{"fixed":"ad673e514b2793b8d5902f6ba6ab7e890dea23d5"},{"fixed":"f0bb3935470684306e4e04793a20ac4c4b08de0b"},{"fixed":"ea62dd1383913b5999f3d16ae99d411f41b528d4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21640.json"}}],"schema_version":"1.7.5"}