tcp: check congestion control restriction first

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux6c1ea8bee75df8fe2184a50fcd0f70bf82986f42 to before 7cd2c6ae977e93dc42bcdc36ef5899aff244da83 Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before 373354e058cde834155480d0e2840f4f280108f2 Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before dc4c138ad6019371a6ef4ce95037f567c06fae93 Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before 08c28d356eb1009e10b27e000a9e80d56f6241cc Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before b559449e3fda9fa5b5e7c6c8eccc8df0dec88c7f Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before f021ba9c6f5e60560a040a54d22df166106941fb Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before 2dea9ba94bc286f7b4f754642eabd71b8b92e7ac Affected8d432592f30fcc34ef5a10aac4887b4897884493 to before dda51b73721684637ab8e9bd97c78228b99c4bd2 Affected992de06308d9a9584d59b96d294ac676f924e437 Affected9884f745108f7d25b189bbcd6754e284fb29ab68 Affectedefe1532a6e1a8e3c343d04fff510f0ed80328f9c Affectede7d7bedd507bb732e600403b7a96f9fe48d0ca31 Affected5.10.37 to before 5.10.275 Affected4.19.191 to before 4.20 Affected5.4.119 to before 5.5 Affected5.11.21 to before 5.12 Affected5.12.4 to before 5.13 Affected
Linux Linux5.13 Affectedbefore 5.13 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.