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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-400
- **Published:** 2024-02-28T08:13:29.051Z
- **Modified:** 2026-06-17T04:16:10.390Z

## Who should check

- Anyone running Linux \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 992de06308d9a9584d59b96d294ac676f924e437; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 9884f745108f7d25b189bbcd6754e284fb29ab68; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< efe1532a6e1a8e3c343d04fff510f0ed80328f9c; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< e7d7bedd507bb732e600403b7a96f9fe48d0ca31; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 8d432592f30fcc34ef5a10aac4887b4897884493
- Anyone running Linux 4.15

## 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

## Affected and fixed versions

- Linux: \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 992de06308d9a9584d59b96d294ac676f924e437; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 9884f745108f7d25b189bbcd6754e284fb29ab68; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< efe1532a6e1a8e3c343d04fff510f0ed80328f9c; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< e7d7bedd507bb732e600403b7a96f9fe48d0ca31; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 8d432592f30fcc34ef5a10aac4887b4897884493 (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- Upgrade Linux to 8d432592f30fcc34ef5a10aac4887b4897884493 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47010. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47010.md
Affected: Linux >= 6670e152447732ba90626f36dfc015a13fbf150e, < 992de06308d9a9584d59b96d294ac676f924e437; >= 6670e152447732ba90626f36dfc015a13fbf150e, < 9884f745108f7d25b189bbcd6754e284fb29ab68; >= 6670e152447732ba90626f36dfc015a13fbf150e, < 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42; >= 6670e152447732ba90626f3…
Fixed in: Linux 992de06308d9a9584d59b96d294ac676f924e437, Linux 9884f745108f7d25b189bbcd6754e284fb29ab68, Linux 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42, Linux 8d432592f30fcc34ef5a10aac4887b4897884493

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47010 being exploited?

There is no confirmed exploitation: CVE-2021-47010 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47010?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47010?

Linux \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 992de06308d9a9584d59b96d294ac676f924e437; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 9884f745108f7d25b189bbcd6754e284fb29ab68; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< efe1532a6e1a8e3c343d04fff510f0ed80328f9c; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< e7d7bedd507bb732e600403b7a96f9fe48d0ca31; \>= 6670e152447732ba90626f36dfc015a13fbf150e, \< 8d432592f30fcc34ef5a10aac4887b4897884493; Linux 4.15.

### Is there a fix for CVE-2021-47010?

Yes. Fixed in Linux 992de06308d9a9584d59b96d294ac676f924e437, Linux 9884f745108f7d25b189bbcd6754e284fb29ab68, Linux 6c1ea8bee75df8fe2184a50fcd0f70bf82986f42, Linux 8d432592f30fcc34ef5a10aac4887b4897884493. Upgrade Linux to 8d432592f30fcc34ef5a10aac4887b4897884493 or later.

### How do I check if I'm affected by CVE-2021-47010?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47010>

HTML: <https://flawdb.com/CVE-2021-47010> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47010>
