# CVE-2023-53492: netfilter: nf\_tables: do not ignore genmask when looking up chain by id

> 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.24% (percentile 9, 2026-11-26)
- **Published:** 2025-10-01T11:45:44.019Z
- **Modified:** 2026-10-15T22:17:40.840Z

## Who should check

- Anyone running Linux \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 4ae2e501331aaa506eaf760339bb2f43e5769395; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 041e2ac88caef286b39064e83e825e3f53113d36; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< fc95c8b02c6160936f1f3d8d9d7f4f66f3c84b49; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 5e5e967e8505fbdabfb6497367ec1b808cadc356; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 515ad530795c118f012539ed76d02bacfd426d89
- Anyone running Linux 5.9

## Description

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

netfilter: nf\_tables: do not ignore genmask when looking up chain by id

When adding a rule to a chain referring to its ID, if that chain had been
deleted on the same batch, the rule might end up referring to a deleted
chain.

This will lead to a WARNING like following:

\[   33.098431\] ------------\[ cut here \]------------
\[   33.098678\] WARNING: CPU: 5 PID: 69 at net/netfilter/nf\_tables\_api.c:2037 nf\_tables\_chain\_destroy+0x23d/0x260
\[   33.099217\] Modules linked in:
\[   33.099388\] CPU: 5 PID: 69 Comm: kworker/5:1 Not tainted 6.4.0+ \#409
\[   33.099726\] Workqueue: events nf\_tables\_trans\_destroy\_work
\[   33.100018\] RIP: 0010:nf\_tables\_chain\_destroy+0x23d/0x260
\[   33.100306\] Code: 8b 7c 24 68 e8 64 9c ed fe 4c 89 e7 e8 5c 9c ed fe 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 89 c6 89 c7 c3 cc cc cc cc \<0f\> 0b 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 89 c6 89 c7
\[   33.101271\] RSP: 0018:ffffc900004ffc48 EFLAGS: 00010202
\[   33.101546\] RAX: 0000000000000001 RBX: ffff888006fc0a28 RCX: 0000000000000000
\[   33.101920\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
\[   33.102649\] RBP: ffffc900004ffc78 R08: 0000000000000000 R09: 0000000000000000
\[   33.103018\] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880135ef500
\[   33.103385\] R13: 0000000000000000 R14: dead000000000122 R15: ffff888006fc0a10
\[   33.103762\] FS:  0000000000000000(0000) GS:ffff888024c80000(0000) knlGS:0000000000000000
\[   33.104184\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[   33.104493\] CR2: 00007fe863b56a50 CR3: 00000000124b0001 CR4: 0000000000770ee0
\[   33.104872\] PKRU: 55555554
\[   33.104999\] Call Trace:
\[   33.105113\]  \<TASK\>
\[   33.105214\]  ? show\_regs+0x72/0x90
\[   33.105371\]  ? \_\_warn+0xa5/0x210
\[   33.105520\]  ? nf\_tables\_chain\_destroy+0x23d/0x260
\[   33.105732\]  ? report\_bug+0x1f2/0x200
\[   33.105902\]  ? handle\_bug+0x46/0x90
\[   33.106546\]  ? exc\_invalid\_op+0x19/0x50
\[   33.106762\]  ? asm\_exc\_invalid\_op+0x1b/0x20
\[   33.106995\]  ? nf\_tables\_chain\_destroy+0x23d/0x260
\[   33.107249\]  ? nf\_tables\_chain\_destroy+0x30/0x260
\[   33.107506\]  nf\_tables\_trans\_destroy\_work+0x669/0x680
\[   33.107782\]  ? mark\_held\_locks+0x28/0xa0
\[   33.107996\]  ? \_\_pfx\_nf\_tables\_trans\_destroy\_work+0x10/0x10
\[   33.108294\]  ? \_raw\_spin\_unlock\_irq+0x28/0x70
\[   33.108538\]  process\_one\_work+0x68c/0xb70
\[   33.108755\]  ? lock\_acquire+0x17f/0x420
\[   33.108977\]  ? \_\_pfx\_process\_one\_work+0x10/0x10
\[   33.109218\]  ? do\_raw\_spin\_lock+0x128/0x1d0
\[   33.109435\]  ? \_raw\_spin\_lock\_irq+0x71/0x80
\[   33.109634\]  worker\_thread+0x2bd/0x700
\[   33.109817\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[   33.110254\]  kthread+0x18b/0x1d0
\[   33.110410\]  ? \_\_pfx\_kthread+0x10/0x10
\[   33.110581\]  ret\_from\_fork+0x29/0x50
\[   33.110757\]  \</TASK\>
\[   33.110866\] irq event stamp: 1651
\[   33.111017\] hardirqs last  enabled at (1659): \[\<ffffffffa206a209\>\] \_\_up\_console\_sem+0x79/0xa0
\[   33.111379\] hardirqs last disabled at (1666): \[\<ffffffffa206a1ee\>\] \_\_up\_console\_sem+0x5e/0xa0
\[   33.111740\] softirqs last  enabled at (1616): \[\<ffffffffa1f5d40e\>\] \_\_irq\_exit\_rcu+0x9e/0xe0
\[   33.112094\] softirqs last disabled at (1367): \[\<ffffffffa1f5d40e\>\] \_\_irq\_exit\_rcu+0x9e/0xe0
\[   33.112453\] ---\[ end trace 0000000000000000 \]---

This is due to the nft\_chain\_lookup\_byid ignoring the genmask. After this
change, adding the new rule will fail as it will not find the chain.

## Affected and fixed versions

- Linux: \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 4ae2e501331aaa506eaf760339bb2f43e5769395; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 041e2ac88caef286b39064e83e825e3f53113d36; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< fc95c8b02c6160936f1f3d8d9d7f4f66f3c84b49; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 5e5e967e8505fbdabfb6497367ec1b808cadc356; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 515ad530795c118f012539ed76d02bacfd426d89 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 515ad530795c118f012539ed76d02bacfd426d89 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53492.md
Affected: Linux >= 837830a4b439bfeb86c70b0115c280377c84714b, < 4ae2e501331aaa506eaf760339bb2f43e5769395; >= 837830a4b439bfeb86c70b0115c280377c84714b, < 041e2ac88caef286b39064e83e825e3f53113d36; >= 837830a4b439bfeb86c70b0115c280377c84714b, < fc95c8b02c6160936f1f3d8d9d7f4f66f3c84b49; >= 837830a4b439bfeb86c70b0…
Fixed in: Linux 4ae2e501331aaa506eaf760339bb2f43e5769395, Linux 041e2ac88caef286b39064e83e825e3f53113d36, Linux 5e5e967e8505fbdabfb6497367ec1b808cadc356, Linux 515ad530795c118f012539ed76d02bacfd426d89

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-2023-53492 being exploited?

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

### How serious is CVE-2023-53492?

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

### Which versions are affected by CVE-2023-53492?

Linux \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 4ae2e501331aaa506eaf760339bb2f43e5769395; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 041e2ac88caef286b39064e83e825e3f53113d36; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< fc95c8b02c6160936f1f3d8d9d7f4f66f3c84b49; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 5e5e967e8505fbdabfb6497367ec1b808cadc356; \>= 837830a4b439bfeb86c70b0115c280377c84714b, \< 515ad530795c118f012539ed76d02bacfd426d89; Linux 5.9.

### Is there a fix for CVE-2023-53492?

Yes. Fixed in Linux 4ae2e501331aaa506eaf760339bb2f43e5769395, Linux 041e2ac88caef286b39064e83e825e3f53113d36, Linux 5e5e967e8505fbdabfb6497367ec1b808cadc356, Linux 515ad530795c118f012539ed76d02bacfd426d89. Upgrade Linux to 515ad530795c118f012539ed76d02bacfd426d89 or later.

### How do I check if I'm affected by CVE-2023-53492?

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/4ae2e501331aaa506eaf760339bb2f43e5769395>
- patch: <https://git.kernel.org/stable/c/041e2ac88caef286b39064e83e825e3f53113d36>
- patch: <https://git.kernel.org/stable/c/fc95c8b02c6160936f1f3d8d9d7f4f66f3c84b49>
- patch: <https://git.kernel.org/stable/c/5e5e967e8505fbdabfb6497367ec1b808cadc356>
- patch: <https://git.kernel.org/stable/c/515ad530795c118f012539ed76d02bacfd426d89>

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

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