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

published high CVSS 3.1 · 7.8

netfilter: nft_ct: skip expectations for confirmed conntrack

Published
15 Mar 2024, 20:14:33 UTC
Updated
05 Aug 2026, 08:46:11 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux857b46027d6f91150797295752581b7155b9d0e1 to < da8d31e80ff425f5a65dab7060d5c4aba749e562 · 857b46027d6f91150797295752581b7155b9d0e1 to < 5f3429c05e4028a0e241afdad856dd15dec2ffb9 · 857b46027d6f91150797295752581b7155b9d0e1 to < 2c0e6b35b88a961127066a1028bce9c727cbc3e5 · 857b46027d6f91150797295752581b7155b9d0e1 to < 1710eb913bdcda3917f44d383c32de6bdabfc836 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.3 (affected) · 0 to < 5.3 (unaffected · semver) · 5.4.125 through 5.4.* (unaffected · semver) · 5.10.43 through 5.10.* (unaffected · semver) · 5.12.10 through 5.12.* (unaffected · semver) · 5.13 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-002 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2022-004 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-002
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004
Show 6 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_ct: skip expectations for confirmed conntrack nft_ct_expect_obj_eval() calls nf_ct_ext_add() for a confirmed conntrack entry. However, nf_ct_ext_add() can only be called for !nf_ct_is_confirmed(). [ 1825.349056] WARNING: CPU: 0 PID: 1279 at net/netfilter/nf_conntrack_extend.c:48 nf_ct_xt_add+0x18e/0x1a0 [nf_conntrack] [ 1825.351391] RIP: 0010:nf_ct_ext_add+0x18e/0x1a0 [nf_conntrack] [ 1825.351493] Code: 41 5c 41 5d 41 5e 41 5f c3 41 bc 0a 00 00 00 e9 15 ff ff ff ba 09 00 00 00 31 f6 4c 89 ff e8 69 6c 3d e9 eb 96 45 31 ed eb cd <0f> 0b e9 b1 fe ff ff e8 86 79 14 e9 eb bf 0f 1f 40 00 0f 1f 44 00 [ 1825.351721] RSP: 0018:ffffc90002e1f1e8 EFLAGS: 00010202 [ 1825.351790] RAX: 000000000000000e RBX: ffff88814f5783c0 RCX: ffffffffc0e4f887 [ 1825.351881] RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffff88814f578440 [ 1825.351971] RBP: 0000000000000000 R08: 0000000000000000 R09: ffff88814f578447 [ 1825.352060] R10: ffffed1029eaf088 R11: 0000000000000001 R12: ffff88814f578440 [ 1825.352150] R13: ffff8882053f3a00 R14: 0000000000000000 R15: 0000000000000a20 [ 1825.352240] FS: 00007f992261c900(0000) GS:ffff889faec00000(0000) knlGS:0000000000000000 [ 1825.352343] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1825.352417] CR2: 000056070a4d1158 CR3: 000000015efe0000 CR4: 0000000000350ee0 [ 1825.352508] Call Trace: [ 1825.352544] nf_ct_helper_ext_add+0x10/0x60 [nf_conntrack] [ 1825.352641] nft_ct_expect_obj_eval+0x1b8/0x1e0 [nft_ct] [ 1825.352716] nft_do_chain+0x232/0x850 [nf_tables] Add the ct helper extension only for unconfirmed conntrack. Skip rule evaluation if the ct helper extension does not exist. Thus, you can only create expectations from the first packet. It should be possible to remove this limitation by adding a new action to attach a generic ct helper to the first packet. Then, use this ct helper extension from follow up packets to create the ct expectation. While at it, add a missing check to skip the template conntrack too and remove check for IPCT_UNTRACK which is implicit to !ct.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is reached by configuring nftables CT expectation objects/rules via netlink and then sending packets through those chains; nftables/netlink is a local attack surface, not remotely exploitable by itself. AC:L - An attacker who installs the rules can reliably generate traffic that hits confirmed conntracks without a helper extension, and can also drive concurrent packet processing on both sides of the ct->ext reallocation race. PR:L - Creating nftables objects/rules requires CAP_NET_ADMIN, which is obtainable by an unprivileged user in a user+network namespace (unshare -Urn); nfnetlink only checks netlink_net_capable(CAP_NET_ADMIN). UI:N - No victim action is required; the attacker configures the rules and triggers the path with self-generated traffic in their netns. S:U - Impact stays within the local kernel/host authority (privilege escalation / memory corruption in-kernel); this is not a VM escape or cross-boundary scope change. C:H - nf_ct_ext_add continues after WARN_ON and may krealloc ct->ext on a confirmed, hashed conntrack shared with concurrent CPUs, creating a use-after-free that can be leveraged for arbitrary kernel memory disclosure. I:H - The same confirmed-conntrack extension reallocation race yields a heap UAF primitive that can be exploited for arbitrary write / control-flow hijacking via heap spraying of the freed extension area. A:H - The path triggers a WARN_ON (panic_on_warn capable) and the UAF race can oops/panic the kernel under concurrent packet processing of the affected conntrack.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 4.6 medium CISA-ADP · adp CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 857b46027d6f91150797295752581b7155b9d0e1 to < da8d31e80ff425f5a65dab7060d5c4aba749e562 (affected · git)857b46027d6f91150797295752581b7155b9d0e1 to < 5f3429c05e4028a0e241afdad856dd15dec2ffb9 (affected · git)857b46027d6f91150797295752581b7155b9d0e1 to < 2c0e6b35b88a961127066a1028bce9c727cbc3e5 (affected · git)857b46027d6f91150797295752581b7155b9d0e1 to < 1710eb913bdcda3917f44d383c32de6bdabfc836 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.3 (affected)0 to < 5.3 (unaffected · semver)5.4.125 through 5.4.* (unaffected · semver)5.10.43 through 5.10.* (unaffected · semver)5.12.10 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-273 CWE-273 Improper Check for Dropped Privileges (CISA-ADP · adp)

References

4

Provider assertions

3

Linux · cna

netfilter: nft_ct: skip expectations for confirmed conntrack

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
3cdabbb52c1c6cfe64b57875c3046a9168e46fab89f86db6a0a55285b3bd103d
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