Linux
sctp: avoid auth_enable sysctl UAF during netns teardown
In the Linux kernel, the following vulnerability has been resolved: sctp: avoid auth_enable sysctl UAF during netns teardown proc_sctp_do_auth() updates the SCTP control socket after changing net.sctp.auth_enable. The handler gets the per-net SCTP state from ctl->data, so an already opened sysctl file can still target a network namespace while that namespace is being torn down. SCTP previously registered its per-net sysctls from sctp_defaults_init(), while the control socket is created later from sctp_ctrlsock_init(). This exposed a window during initialization where auth_enable was writable before net->sctp.ctl_sock existed, and a teardown window where auth_enable stayed writable after inet_ctl_sock_destroy() had released the control socket. Move the per-net SCTP sysctl registration into sctp_ctrlsock_init() after sctp_ctl_sock_init() succeeds, and unregister the sysctl table before destroying the control socket in sctp_ctrlsock_exit(). If sysctl registration fails after the control socket was created, destroy the control socket in the same init path. Make sctp_sysctl_net_unregister() tolerate a missing header and clear the saved pointer so init-error and exit paths can safely share the unregister helper.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 10c869a52f266e40f548cc3c565d14930a5edafc, < 19573dcddb8819fd68d6cd1f916c1c99c3fa4ff4
- >= dc583e7e5f8515ca489c0df28e4362a70eade382, < ceb7190b5c873d4a1267a1600c5aa52c600e929f
- >= bd2a2939423566c654545fa3e96a656662a0af9e, < fd66854a22661929245f3d2b244c432bc8b1a150
- >= 1b67030d39f2b00f94ac1f0af11ba6657589e4d3, < 158f3cc332dc53f43ec20060233d7c3cecd6d912
- >= 7ec30c54f339c640aa7e49d7e9f7bbed6bd42bf6, < 66700c0719675e0e118ae83b2d7168dacd69dd3d
- >= c184bc621e3cef03ac9ba81a50dda2dae6a21d36, < 626bda8cfe43dff19a9833ff6ba055a817b5455c
- >= 15649fd5415eda664ef35780c2013adeb5d9c695, < be6aae9d1b91c603adb35872d37d40e83daf8758
- >= 15649fd5415eda664ef35780c2013adeb5d9c695, < a50e73488e0bbdd262b3be3c9a1d8dd078382381
- >= 15649fd5415eda664ef35780c2013adeb5d9c695, < f8d5e7846025f4ab15a461235f8ebae9094a361a
- >= 5.4.290, < 5.4.292
- >= 5.10.234, < 5.10.266
- >= 5.15.177, < 5.15.217
- >= 6.1.125, < 6.1.184
- >= 6.6.72, < 6.6.151
- >= 6.12.10, < 6.12.101
Fixed in 19573dcddb8819fd68d6cd1f916c1c99c3fa4ff4, ceb7190b5c873d4a1267a1600c5aa52c600e929f, fd66854a22661929245f3d2b244c432bc8b1a150, 158f3cc332dc53f43ec20060233d7c3cecd6d912, 66700c0719675e0e118ae83b2d7168dacd69dd3d, 626bda8cfe43dff19a9833ff6ba055a817b5455c, be6aae9d1b91c603adb35872d37d40e83daf8758, a50e73488e0bbdd262b3be3c9a1d8dd078382381, f8d5e7846025f4ab15a461235f8ebae9094a361a, 5.4.292, 5.10.266, 5.15.217, 6.1.184, 6.6.151, 6.12.101
- 6.13
Fixed in 0, 5.4.292, 5.10.266, 5.15.217, 6.1.184, 6.6.151, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 19573dcddb8819fd68d6cd1f916c1c99c3fa4ff4 or ceb7190b5c873d4a1267a1600c5aa52c600e929f or fd66854a22661929245f3d2b244c432bc8b1a150 or 158f3cc332dc53f43ec20060233d7c3cecd6d912 or 66700c0719675e0e118ae83b2d7168dacd69dd3d or 626bda8cfe43dff19a9833ff6ba055a817b5455c or be6aae9d1b91c603adb35872d37d40e83daf8758 or a50e73488e0bbdd262b3be3c9a1d8dd078382381 or f8d5e7846025f4ab15a461235f8ebae9094a361a or 5.4.292 or 5.10.266 or 5.15.217 or 6.1.184 or 6.6.151 or 6.12.101 or later.
Upgrade Linux to 0 or 5.4.292 or 5.10.266 or 5.15.217 or 6.1.184 or 6.6.151 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.