{"id":"CVE-2026-99840","aliases":["CVE-2026-99840"],"related":[],"kind":"vulnerability","state":"published","title":"tcp: check congestion control restriction first","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: check congestion control restriction first\n\ntcp_set_default_congestion_control() takes a reference to an algorithm\nbefore checking whether a non-init network namespace may select it. A\nrejected request returns -EPERM without dropping the reference.\n\nThis affects module-backed algorithms too; BPF is not required. For\nexample, after root loads tcp_bbr, a user with CAP_NET_ADMIN in a\nnon-init network namespace can repeatedly request it as the default\nalthough it is not in tcp_allowed_congestion_control. Each rejected\nwrite leaks a module reference. Since module->refcnt is an atomic_t,\n2^31 such writes can make it negative; later module_put() calls warn,\nand rmmod can hit the BUG_ON() in try_release_module_ref().\n\nCheck the namespace restriction before acquiring the reference, as\ntcp_set_congestion_control() already does.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: check congestion control restriction first\n\ntcp_set_default_congestion_control() takes a reference to an algorithm\nbefore checking whether a non-init network namespace may select it. A\nrejected request returns -EPERM without dropping the reference.\n\nThis affects module-backed algorithms too; BPF is not required. For\nexample, after root loads tcp_bbr, a user with CAP_NET_ADMIN in a\nnon-init network namespace can repeatedly request it as the default\nalthough it is not in tcp_allowed_congestion_control. Each rejected\nwrite leaks a module reference. Since module->refcnt is an atomic_t,\n2^31 such writes can make it negative; later module_put() calls warn,\nand rmmod can hit the BUG_ON() in try_release_module_ref().\n\nCheck the namespace restriction before acquiring the reference, as\ntcp_set_congestion_control() already does.","source":"cvelist"}],"published":"2026-11-30T13:17:32.491Z","modified":"2026-11-30T14:20:17.053Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6c1ea8bee75df8fe2184a50fcd0f70bf82986f42","fixed":"7cd2c6ae977e93dc42bcdc36ef5899aff244da83","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"373354e058cde834155480d0e2840f4f280108f2","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"dc4c138ad6019371a6ef4ce95037f567c06fae93","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"08c28d356eb1009e10b27e000a9e80d56f6241cc","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"b559449e3fda9fa5b5e7c6c8eccc8df0dec88c7f","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"f021ba9c6f5e60560a040a54d22df166106941fb","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"2dea9ba94bc286f7b4f754642eabd71b8b92e7ac","status":"affected"},{"type":"git","introduced":"8d432592f30fcc34ef5a10aac4887b4897884493","fixed":"dda51b73721684637ab8e9bd97c78228b99c4bd2","status":"affected"},{"type":"git","version":"992de06308d9a9584d59b96d294ac676f924e437","status":"affected"},{"type":"git","version":"9884f745108f7d25b189bbcd6754e284fb29ab68","status":"affected"},{"type":"git","version":"efe1532a6e1a8e3c343d04fff510f0ed80328f9c","status":"affected"},{"type":"git","version":"e7d7bedd507bb732e600403b7a96f9fe48d0ca31","status":"affected"},{"type":"semver","introduced":"5.10.37","fixed":"5.10.275","status":"affected"},{"type":"semver","introduced":"4.19.191","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.119","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.11.21","fixed":"5.12","status":"affected"},{"type":"semver","introduced":"5.12.4","fixed":"5.13","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7cd2c6ae977e93dc42bcdc36ef5899aff244da83","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/373354e058cde834155480d0e2840f4f280108f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc4c138ad6019371a6ef4ce95037f567c06fae93","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08c28d356eb1009e10b27e000a9e80d56f6241cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b559449e3fda9fa5b5e7c6c8eccc8df0dec88c7f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f021ba9c6f5e60560a040a54d22df166106941fb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2dea9ba94bc286f7b4f754642eabd71b8b92e7ac","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dda51b73721684637ab8e9bd97c78228b99c4bd2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99840","url":"https://www.cve.org/CVERecord?id=CVE-2026-99840","licence":"CVE Terms of Use","modified":"2026-11-30T13:17:32.491Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99840","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99840","licence":"Public domain","modified":"2026-11-30T14:20:17.053Z"}],"updatedAt":"2026-11-30T14:33:32.805Z","epss":{"score":0.00221,"percentile":0.13459,"date":"2026-12-01T12:00:22.000Z"}}