# CVE-2021-47010: net: Only allow init netns to set default tcp cong to a restricted algo

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:29.051Z
- Modified: 2026-06-17T04:16:10.390Z
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: Only allow init netns to set default tcp cong to a restricted algo

tcp_set_default_congestion_control() is netns-safe in that it writes
to &net->ipv4.tcp_congestion_control, but it also sets
ca->flags |= TCP_CONG_NON_RESTRICTED which is not namespaced.
This has the unintended side-effect of changing the global
net.ipv4.tcp_allowed_congestion_control sysctl, despite the fact that it
is read-only: 97684f0970f6 ("net: Make tcp_allowed_congestion_control
readonly in non-init netns")

Resolve this netns "leak" by only allowing the init netns to set the
default algorithm to one that is restricted. This restriction could be
removed if tcp_allowed_congestion_control were namespace-ified in the
future.

This bug was uncovered with
https://github.com/JonathonReinhart/linux-netns-sysctl-verify

(As written by CVE List.)

## Affected

- Linux Linux: from 6670e152447732ba90626f36dfc015a13fbf150e before 992de06308d9a9584d59b96d294ac676f924e437; from 6670e152447732ba90626f36dfc015a13fbf150e before 9884f745108f7d25b189bbcd6754e284fb29ab68; from 6670e152447732ba90626f36dfc015a13fbf150e before 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42; from 6670e152447732ba90626f36dfc015a13fbf150e before efe1532a6e1a8e3c343d04fff510f0ed80328f9c; from 6670e152447732ba90626f36dfc015a13fbf150e before e7d7bedd507bb732e600403b7a96f9fe48d0ca31; from 6670e152447732ba90626f36dfc015a13fbf150e before 8d432592f30fcc34ef5a10aac4887b4897884493; 4.15 (not affected: before 4.15; from 4.19.191 up to 4.19.*; from 5.4.119 up to 5.4.*; from 5.10.37 up to 5.10.*; from 5.11.21 up to 5.11.*; from 5.12.4 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 6670e1524477 before 992de06308d9; from 6670e1524477 before 9884f745108f; from 6670e1524477 before 6c1ea8bee75d; from 6670e1524477 before efe1532a6e1a; from 6670e1524477 before e7d7bedd507b; from 6670e1524477 before 8d432592f30f; 4.15; from 4.15 before 4.19.191; from 4.20 before 5.4.119; from 5.5 before 5.10.37; from 5.11 before 5.11.21; from 5.12 before 5.12.4 (not affected: before 4.15; from 4.19.191 up to 4.20; from 5.4.119 up to 5.5; from 5.10.37 up to 5.11; from 5.11.21 up to 5.12; from 5.12.4 up to 5.13; from 5.13 up to *)

## References

- <https://git.kernel.org/stable/c/992de06308d9a9584d59b96d294ac676f924e437> (patch)
- <https://git.kernel.org/stable/c/9884f745108f7d25b189bbcd6754e284fb29ab68> (patch)
- <https://git.kernel.org/stable/c/6c1ea8bee75df8fe2184a50fcd0f70bf82986f42> (patch)
- <https://git.kernel.org/stable/c/efe1532a6e1a8e3c343d04fff510f0ed80328f9c> (patch)
- <https://git.kernel.org/stable/c/e7d7bedd507bb732e600403b7a96f9fe48d0ca31> (patch)
- <https://git.kernel.org/stable/c/8d432592f30fcc34ef5a10aac4887b4897884493> (patch)

## Sources

- CVE List: [CVE-2021-47010](https://www.cve.org/CVERecord?id=CVE-2021-47010), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47010](https://nvd.nist.gov/vuln/detail/CVE-2021-47010), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47010 · Whole record: https://cve.day/CVE-2021-47010.json · Rebuilt by cve.day 2026-11-25T22:58:08.614Z
