CVE-2026-68162 PUBLISHED

sctp: avoid auth_enable sysctl UAF during netns teardown

Assigner: Linux
Reserved: 30.07.2026 Published: 10.08.2026 Updated: 10.08.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 10c869a52f266e40f548cc3c565d14930a5edafc to 19573dcddb8819fd68d6cd1f916c1c99c3fa4ff4 (excl.)
  • affected from 7ec30c54f339c640aa7e49d7e9f7bbed6bd42bf6 to 66700c0719675e0e118ae83b2d7168dacd69dd3d (excl.)
  • affected from c184bc621e3cef03ac9ba81a50dda2dae6a21d36 to 626bda8cfe43dff19a9833ff6ba055a817b5455c (excl.)
  • affected from 15649fd5415eda664ef35780c2013adeb5d9c695 to be6aae9d1b91c603adb35872d37d40e83daf8758 (excl.)
  • affected from 15649fd5415eda664ef35780c2013adeb5d9c695 to a50e73488e0bbdd262b3be3c9a1d8dd078382381 (excl.)
  • affected from 15649fd5415eda664ef35780c2013adeb5d9c695 to f8d5e7846025f4ab15a461235f8ebae9094a361a (excl.)
  • Version dc583e7e5f8515ca489c0df28e4362a70eade382 is affected
  • Version bd2a2939423566c654545fa3e96a656662a0af9e is affected
  • Version 1b67030d39f2b00f94ac1f0af11ba6657589e4d3 is affected
  • affected from 5.4.290 to 5.4.292 (excl.)
  • affected from 6.6.72 to 6.6.151 (excl.)
  • affected from 6.12.10 to 6.12.101 (excl.)
  • affected from 5.10.234 to 5.11 (excl.)
  • affected from 5.15.177 to 5.16 (excl.)
  • affected from 6.1.125 to 6.2 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.13 is affected
  • unaffected from 0 to 6.13 (excl.)
  • unaffected from 5.4.292 to 5.4.* (incl.)
  • unaffected from 6.6.151 to 6.6.* (incl.)
  • unaffected from 6.12.101 to 6.12.* (incl.)
  • unaffected from 6.18.42 to 6.18.* (incl.)
  • unaffected from 7.1.6 to 7.1.* (incl.)
  • unaffected from 7.2-rc5 to * (incl.)

References