Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-46912

published high CVSS 3.1 · 7.3

net: Make tcp_allowed_congestion_control readonly in non-init netns

Published
27 Feb 2024, 06:53:52 UTC
Updated
05 Aug 2026, 08:45:03 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux9cb8e048e5d93825ec5e8dfb5b8df4987ea25745 to < 35d7491e2f77ce480097cabcaf93ed409e916e12 · 9cb8e048e5d93825ec5e8dfb5b8df4987ea25745 to < 1ccdf1bed140820240e383ba0accc474ffc7f006 · 9cb8e048e5d93825ec5e8dfb5b8df4987ea25745 to < 97684f0970f6e112926de631fdd98d9693c7e5c1 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.10.32 through 5.10.* (unaffected · semver) · 5.11.16 through 5.11.* (unaffected · semver) · 5.12 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2022-001 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-001
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-001
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2022-001
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-001

Description

In the Linux kernel, the following vulnerability has been resolved: net: Make tcp_allowed_congestion_control readonly in non-init netns Currently, tcp_allowed_congestion_control is global and writable; writing to it in any net namespace will leak into all other net namespaces. tcp_available_congestion_control and tcp_allowed_congestion_control are the only sysctls in ipv4_net_table (the per-netns sysctl table) with a NULL data pointer; their handlers (proc_tcp_available_congestion_control and proc_allowed_congestion_control) have no other way of referencing a struct net. Thus, they operate globally. Because ipv4_net_table does not use designated initializers, there is no easy way to fix up this one "bad" table entry. However, the data pointer updating logic shouldn't be applied to NULL pointers anyway, so we instead force these entries to be read-only. These sysctls used to exist in ipv4_table (init-net only), but they were moved to the per-net ipv4_net_table, presumably without realizing that tcp_allowed_congestion_control was writable and thus introduced a leak. Because the intent of that commit was only to know (i.e. read) "which congestion algorithms are available or allowed", this read-only solution should be sufficient. The logic added in recent commit 31c4d2f160eb: ("net: Ensure net namespace isolation of sysctls") does not and cannot check for NULL data pointers, because other table entries (e.g. /proc/sys/net/netfilter/nf_log/) have .data=NULL but use other methods (.extra2) to access the struct net.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L
Scenarios
en: AV:L - Exploitation requires local access to write /proc/sys/net/ipv4/tcp_allowed_congestion_control (via userns+netns sysctl), not remote packet processing. AC:L - The attacker reliably triggers the bug with a single sysctl write; no races, special memory layout, or conditions outside their control. PR:L - Writing the net sysctl needs CAP_NET_ADMIN in the netns's user_ns, which an unprivileged user obtains via unshare/CLONE_NEWUSER|CLONE_NEWNET (net_ctl_permissions), not real host root. UI:N - No victim action is required; the attacker creates namespaces and writes the sysctl themselves. S:C - The write modifies global TCP_CONG_NON_RESTRICTED flags shared across all net namespaces, crossing the netns isolation boundary so a child/container netns impacts init_net and other namespaces. C:N - The bug only changes the global allowlist; it does not disclose kernel memory or other confidential data beyond what was already world-readable. I:H - The attacker fully rewrites the system-wide tcp_allowed_congestion_control policy (including clearing all NON_RESTRICTED flags or enabling restricted/BPF algorithms for all unprivileged processes), a complete loss of that protection mechanism across the host. A:L - Clearing or shrinking the allowlist can deny unprivileged host processes the ability to select congestion algorithms via setsockopt, impairing functionality/performance, but there is no kernel crash, panic, or hang.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 9cb8e048e5d93825ec5e8dfb5b8df4987ea25745 to < 35d7491e2f77ce480097cabcaf93ed409e916e12 (affected · git)9cb8e048e5d93825ec5e8dfb5b8df4987ea25745 to < 1ccdf1bed140820240e383ba0accc474ffc7f006 (affected · git)9cb8e048e5d93825ec5e8dfb5b8df4987ea25745 to < 97684f0970f6e112926de631fdd98d9693c7e5c1 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.7 (affected)0 to < 5.7 (unaffected · semver)5.10.32 through 5.10.* (unaffected · semver)5.11.16 through 5.11.* (unaffected · semver)5.12 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

3

Linux · cna

net: Make tcp_allowed_congestion_control readonly in non-init netns

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
4ce3109ada927f543c6455c69d2ff239499bd64d379b71e78b0992bb94f9f96e
Ingested
23 Sep 2026, 07:57:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected