{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6c1ea8bee75df8fe2184a50fcd0f70bf82986f42"
            },
            {
              "fixed": "7cd2c6ae977e93dc42bcdc36ef5899aff244da83"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "8d432592f30fcc34ef5a10aac4887b4897884493"
            },
            {
              "fixed": "373354e058cde834155480d0e2840f4f280108f2"
            },
            {
              "fixed": "dc4c138ad6019371a6ef4ce95037f567c06fae93"
            },
            {
              "fixed": "08c28d356eb1009e10b27e000a9e80d56f6241cc"
            },
            {
              "fixed": "b559449e3fda9fa5b5e7c6c8eccc8df0dec88c7f"
            },
            {
              "fixed": "f021ba9c6f5e60560a040a54d22df166106941fb"
            },
            {
              "fixed": "2dea9ba94bc286f7b4f754642eabd71b8b92e7ac"
            },
            {
              "fixed": "dda51b73721684637ab8e9bd97c78228b99c4bd2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "992de06308d9a9584d59b96d294ac676f924e437"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "9884f745108f7d25b189bbcd6754e284fb29ab68"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "efe1532a6e1a8e3c343d04fff510f0ed80328f9c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "e7d7bedd507bb732e600403b7a96f9fe48d0ca31"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.19.191"
            },
            {
              "fixed": "4.20"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.4.119"
            },
            {
              "fixed": "5.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.10.37"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.21"
            },
            {
              "fixed": "5.12"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.12.4"
            },
            {
              "fixed": "5.13"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.13.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99840.json"
  },
  "details": "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-\u003erefcnt 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.",
  "id": "CVE-2026-99840",
  "modified": "2026-11-30T14:45:17.430779996Z",
  "published": "2026-11-30T13:17:32.491Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/08c28d356eb1009e10b27e000a9e80d56f6241cc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2dea9ba94bc286f7b4f754642eabd71b8b92e7ac"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/373354e058cde834155480d0e2840f4f280108f2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7cd2c6ae977e93dc42bcdc36ef5899aff244da83"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b559449e3fda9fa5b5e7c6c8eccc8df0dec88c7f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dc4c138ad6019371a6ef4ce95037f567c06fae93"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dda51b73721684637ab8e9bd97c78228b99c4bd2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f021ba9c6f5e60560a040a54d22df166106941fb"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99840.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99840"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "tcp: check congestion control restriction first"
}