# CVE-2022-48912: netfilter: fix use-after-free in \_\_nf\_register\_net\_hook()

> 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-08-22T01:31:25.620Z
- **Modified:** 2026-08-05T08:52:52.650Z

## Who should check

- Anyone running Linux \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 05f7927b25d2635e87267ff6c79db79fb46cf313; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< bdd8fc1b826e6f23963f5bef3f7431c6188ec954; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 49c24579cec41e32f13d57b337fd28fb208d4a5b; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 8b0142c4143c1ca297dcf2c0cdd045d65dae2344; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< bd61f192a339b1095dfd6d56073a5265934c2979; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 5a8076e98dde17224dd47283b894a8b1dbe1bc72; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 56763f12b0f02706576a088e85ef856deacc98a0
- Anyone running Linux 4.14

## Description

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

netfilter: fix use-after-free in \_\_nf\_register\_net\_hook()

We must not dereference @new\_hooks after nf\_hook\_mutex has been released,
because other threads might have freed our allocated hooks already.

BUG: KASAN: use-after-free in nf\_hook\_entries\_get\_hook\_ops include/linux/netfilter.h:130 \[inline\]
BUG: KASAN: use-after-free in hooks\_validate net/netfilter/core.c:171 \[inline\]
BUG: KASAN: use-after-free in \_\_nf\_register\_net\_hook+0x77a/0x820 net/netfilter/core.c:438
Read of size 2 at addr ffff88801c1a8000 by task syz-executor237/4430

CPU: 1 PID: 4430 Comm: syz-executor237 Not tainted 5.17.0-rc5-syzkaller-00306-g2293be58d6a1 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
 print\_address\_description.constprop.0.cold+0x8d/0x336 mm/kasan/report.c:255
 \_\_kasan\_report mm/kasan/report.c:442 \[inline\]
 kasan\_report.cold+0x83/0xdf mm/kasan/report.c:459
 nf\_hook\_entries\_get\_hook\_ops include/linux/netfilter.h:130 \[inline\]
 hooks\_validate net/netfilter/core.c:171 \[inline\]
 \_\_nf\_register\_net\_hook+0x77a/0x820 net/netfilter/core.c:438
 nf\_register\_net\_hook+0x114/0x170 net/netfilter/core.c:571
 nf\_register\_net\_hooks+0x59/0xc0 net/netfilter/core.c:587
 nf\_synproxy\_ipv6\_init+0x85/0xe0 net/netfilter/nf\_synproxy\_core.c:1218
 synproxy\_tg6\_check+0x30d/0x560 net/ipv6/netfilter/ip6t\_SYNPROXY.c:81
 xt\_check\_target+0x26c/0x9e0 net/netfilter/x\_tables.c:1038
 check\_target net/ipv6/netfilter/ip6\_tables.c:530 \[inline\]
 find\_check\_entry.constprop.0+0x7f1/0x9e0 net/ipv6/netfilter/ip6\_tables.c:573
 translate\_table+0xc8b/0x1750 net/ipv6/netfilter/ip6\_tables.c:735
 do\_replace net/ipv6/netfilter/ip6\_tables.c:1153 \[inline\]
 do\_ip6t\_set\_ctl+0x56e/0xb90 net/ipv6/netfilter/ip6\_tables.c:1639
 nf\_setsockopt+0x83/0xe0 net/netfilter/nf\_sockopt.c:101
 ipv6\_setsockopt+0x122/0x180 net/ipv6/ipv6\_sockglue.c:1024
 rawv6\_setsockopt+0xd3/0x6a0 net/ipv6/raw.c:1084
 \_\_sys\_setsockopt+0x2db/0x610 net/socket.c:2180
 \_\_do\_sys\_setsockopt net/socket.c:2191 \[inline\]
 \_\_se\_sys\_setsockopt net/socket.c:2188 \[inline\]
 \_\_x64\_sys\_setsockopt+0xba/0x150 net/socket.c:2188
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
RIP: 0033:0x7f65a1ace7d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f65a1a7f308 EFLAGS: 00000246 ORIG\_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00007f65a1ace7d9
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 00007f65a1b574c8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 00007f65a1b55130
R13: 00007f65a1b574c0 R14: 00007f65a1b24090 R15: 0000000000022000
 \</TASK\>

The buggy address belongs to the page:
page:ffffea0000706a00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1c1a8
flags: 0xfff00000000000(node=0\|zone=1\|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001c1b108 ffffea000046dd08 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page\_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp\_mask 0x52dc0(GFP\_KERNEL\|\_\_GFP\_NOWARN\|\_\_GFP\_NORETRY\|\_\_GFP\_COMP\|\_\_GFP\_ZERO), pid 4430, ts 1061781545818, free\_ts 1061791488993
 prep\_new\_page mm/page\_alloc.c:2434 \[inline\]
 get\_page\_from\_freelist+0xa72/0x2f50 mm/page\_alloc.c:4165
 \_\_alloc\_pages+0x1b2/0x500 mm/page\_alloc.c:5389
 \_\_alloc\_pages\_node include/linux/gfp.h:572 \[inline\]
 alloc\_pages\_node include/linux/gfp.h:595 \[inline\]
 kmalloc\_large\_node+0x62/0x130 mm/slub.c:4438
 \_\_kmalloc\_node+0x35a/0x4a0 mm/slub.
---truncated---

## Affected and fixed versions

- Linux: \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 05f7927b25d2635e87267ff6c79db79fb46cf313; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< bdd8fc1b826e6f23963f5bef3f7431c6188ec954; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 49c24579cec41e32f13d57b337fd28fb208d4a5b; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 8b0142c4143c1ca297dcf2c0cdd045d65dae2344; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< bd61f192a339b1095dfd6d56073a5265934c2979; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 5a8076e98dde17224dd47283b894a8b1dbe1bc72; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 56763f12b0f02706576a088e85ef856deacc98a0 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 56763f12b0f02706576a088e85ef856deacc98a0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48912.md
Affected: Linux >= 2420b79f8c18a75ee2417cace381f4604b9b4365, < 05f7927b25d2635e87267ff6c79db79fb46cf313; >= 2420b79f8c18a75ee2417cace381f4604b9b4365, < bdd8fc1b826e6f23963f5bef3f7431c6188ec954; >= 2420b79f8c18a75ee2417cace381f4604b9b4365, < 49c24579cec41e32f13d57b337fd28fb208d4a5b; >= 2420b79f8c18a75ee2417ca…
Fixed in: Linux 05f7927b25d2635e87267ff6c79db79fb46cf313, Linux 49c24579cec41e32f13d57b337fd28fb208d4a5b, Linux 8b0142c4143c1ca297dcf2c0cdd045d65dae2344, Linux 5a8076e98dde17224dd47283b894a8b1dbe1bc72, Linux 56763f12b0f02706576a088e85ef856deacc98a0

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-2022-48912 being exploited?

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

### How serious is CVE-2022-48912?

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

### Which versions are affected by CVE-2022-48912?

Linux \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 05f7927b25d2635e87267ff6c79db79fb46cf313; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< bdd8fc1b826e6f23963f5bef3f7431c6188ec954; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 49c24579cec41e32f13d57b337fd28fb208d4a5b; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 8b0142c4143c1ca297dcf2c0cdd045d65dae2344; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< bd61f192a339b1095dfd6d56073a5265934c2979; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 5a8076e98dde17224dd47283b894a8b1dbe1bc72; \>= 2420b79f8c18a75ee2417cace381f4604b9b4365, \< 56763f12b0f02706576a088e85ef856deacc98a0; Linux 4.14.

### Is there a fix for CVE-2022-48912?

Yes. Fixed in Linux 05f7927b25d2635e87267ff6c79db79fb46cf313, Linux 49c24579cec41e32f13d57b337fd28fb208d4a5b, Linux 8b0142c4143c1ca297dcf2c0cdd045d65dae2344, Linux 5a8076e98dde17224dd47283b894a8b1dbe1bc72, Linux 56763f12b0f02706576a088e85ef856deacc98a0. Upgrade Linux to 56763f12b0f02706576a088e85ef856deacc98a0 or later.

### How do I check if I'm affected by CVE-2022-48912?

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/05f7927b25d2635e87267ff6c79db79fb46cf313>
- patch: <https://git.kernel.org/stable/c/bdd8fc1b826e6f23963f5bef3f7431c6188ec954>
- patch: <https://git.kernel.org/stable/c/49c24579cec41e32f13d57b337fd28fb208d4a5b>
- patch: <https://git.kernel.org/stable/c/8b0142c4143c1ca297dcf2c0cdd045d65dae2344>
- patch: <https://git.kernel.org/stable/c/bd61f192a339b1095dfd6d56073a5265934c2979>
- patch: <https://git.kernel.org/stable/c/5a8076e98dde17224dd47283b894a8b1dbe1bc72>
- patch: <https://git.kernel.org/stable/c/56763f12b0f02706576a088e85ef856deacc98a0>

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

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