# CVE-2021-47129: netfilter: nft\_ct: skip expectations for confirmed conntrack

> 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.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-273
- **Published:** 2024-03-15T20:14:33.102Z
- **Modified:** 2026-08-05T08:46:11.081Z

## Who should check

- Anyone running Linux \>= 857b46027d6f91150797295752581b7155b9d0e1, \< da8d31e80ff425f5a65dab7060d5c4aba749e562; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 5f3429c05e4028a0e241afdad856dd15dec2ffb9; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 2c0e6b35b88a961127066a1028bce9c727cbc3e5; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 1710eb913bdcda3917f44d383c32de6bdabfc836
- Anyone running Linux 5.3

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

## Affected and fixed versions

- Linux: \>= 857b46027d6f91150797295752581b7155b9d0e1, \< da8d31e80ff425f5a65dab7060d5c4aba749e562; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 5f3429c05e4028a0e241afdad856dd15dec2ffb9; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 2c0e6b35b88a961127066a1028bce9c727cbc3e5; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 1710eb913bdcda3917f44d383c32de6bdabfc836 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 1710eb913bdcda3917f44d383c32de6bdabfc836 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-47129. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47129.md
Affected: Linux >= 857b46027d6f91150797295752581b7155b9d0e1, < da8d31e80ff425f5a65dab7060d5c4aba749e562; >= 857b46027d6f91150797295752581b7155b9d0e1, < 5f3429c05e4028a0e241afdad856dd15dec2ffb9; >= 857b46027d6f91150797295752581b7155b9d0e1, < 2c0e6b35b88a961127066a1028bce9c727cbc3e5; >= 857b46027d6f91150797295…
Fixed in: Linux 5f3429c05e4028a0e241afdad856dd15dec2ffb9, Linux 2c0e6b35b88a961127066a1028bce9c727cbc3e5, Linux 1710eb913bdcda3917f44d383c32de6bdabfc836

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-47129 being exploited?

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

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

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

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

Linux \>= 857b46027d6f91150797295752581b7155b9d0e1, \< da8d31e80ff425f5a65dab7060d5c4aba749e562; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 5f3429c05e4028a0e241afdad856dd15dec2ffb9; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 2c0e6b35b88a961127066a1028bce9c727cbc3e5; \>= 857b46027d6f91150797295752581b7155b9d0e1, \< 1710eb913bdcda3917f44d383c32de6bdabfc836; Linux 5.3.

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

Yes. Fixed in Linux 5f3429c05e4028a0e241afdad856dd15dec2ffb9, Linux 2c0e6b35b88a961127066a1028bce9c727cbc3e5, Linux 1710eb913bdcda3917f44d383c32de6bdabfc836. Upgrade Linux to 1710eb913bdcda3917f44d383c32de6bdabfc836 or later.

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

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/da8d31e80ff425f5a65dab7060d5c4aba749e562>
- patch: <https://git.kernel.org/stable/c/5f3429c05e4028a0e241afdad856dd15dec2ffb9>
- patch: <https://git.kernel.org/stable/c/2c0e6b35b88a961127066a1028bce9c727cbc3e5>
- patch: <https://git.kernel.org/stable/c/1710eb913bdcda3917f44d383c32de6bdabfc836>

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

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