{"id":"CVE-2025-21637","published":"2025-01-19T10:17:55Z","modified":"2026-08-05T11:53:17Z","title":"sctp: sysctl: udp_port: avoid using current->nsproxy","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: sysctl: udp_port: 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 'net' structure can be obtained from the table->data using\ncontainer_of().\n\nNote that table->data could also be used directly, but that would\nincrease the size of this fix, while 'sctp.ctl_sock' still needs to be\nretrieved from 'net' structure.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00214,"percentile":0.11915,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/0a0966312ac3eedd7f5f2a766ed4702df39a9a65","tags":[]},{"url":"https://git.kernel.org/stable/c/e919197fb8616331f5dc81e4c3cc3d12769cb725","tags":[]},{"url":"https://git.kernel.org/stable/c/55627918febdf9d71107a1e68d1528dc591c9a15","tags":[]},{"url":"https://git.kernel.org/stable/c/5b77d73f3be5102720fb685b9e6900e3500e1096","tags":[]},{"url":"https://git.kernel.org/stable/c/c10377bbc1972d858eaf0ab366a311b39f8ef1b6","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":2.38},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 046c052b475e7119b6a30e3483e2888fc606a2f8, < 0a0966312ac3eedd7f5f2a766ed4702df39a9a65",">= 046c052b475e7119b6a30e3483e2888fc606a2f8, < e919197fb8616331f5dc81e4c3cc3d12769cb725",">= 046c052b475e7119b6a30e3483e2888fc606a2f8, < 55627918febdf9d71107a1e68d1528dc591c9a15",">= 046c052b475e7119b6a30e3483e2888fc606a2f8, < 5b77d73f3be5102720fb685b9e6900e3500e1096",">= 046c052b475e7119b6a30e3483e2888fc606a2f8, < c10377bbc1972d858eaf0ab366a311b39f8ef1b6"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:54:10.551212Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-2586","exploited":false,"provenance":"source"}}