tcp: check congestion control restriction first
- CVE-2026-99840
- GHSA-h724-2q47-7fcg
- EUVD-2026-138472
Description
In the Linux kernel, the following vulnerability has been resolved: tcp: check congestion control restriction first tcp_set_default_congestion_control() takes a reference to an algorithm before checking whether a non-init network namespace may select it. A rejected request returns -EPERM without dropping the reference. This affects module-backed algorithms too; BPF is not required. For example, after root loads tcp_bbr, a user with CAP_NET_ADMIN in a non-init network namespace can repeatedly request it as the default although it is not in tcp_allowed_congestion_control. Each rejected write leaks a module reference. Since module->refcnt is an atomic_t, 2^31 such writes can make it negative; later module_put() calls warn, and rmmod can hit the BUG_ON() in try_release_module_ref(). Check the namespace restriction before acquiring the reference, as tcp_set_congestion_control() already does.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 5.11.21 to before 5.12update to 5.12 or laterMinor version change: check the release notes
- If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
- If you run a version from 5.4.119 to before 5.5update to 5.5 or laterMinor version change: check the release notes
- If you run a version from 4.19.191 to before 4.20update to 4.20 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 5.11.21 to before 5.12 5.12 from 5.10.37 to before 5.10.275 5.10.275 from 5.4.119 to before 5.5 5.5 from 4.19.191 to before 4.20 4.20 from 5.12.4 to before 5.13 none stated 5.13 none stated before 5.13: not affected none stated from 5.10.275 up to 5.10.*: not affected none stated and 7 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.