# CVE-2022-48956: ipv6: avoid use-after-free in ip6\_fragment()

> 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.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T20:05:42.379Z
- **Modified:** 2026-08-05T08:53:07.681Z

## Who should check

- Anyone running Linux \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< b3d7ff8c04a83279fb7641fc4d5aa82a602df7c0; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 6b6d3be3661bff2746cab26147bd629aa034e094; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 8208d7e56b1e579320b9ff3712739ad2e63e1f86; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 7390c70bd431cbfa6951477e2c80a301643e284b; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 9b1a468a455d8319041528778d0e684a4c062792; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 803e84867de59a1e5d126666d25eb4860cfd2ebe
- Anyone running Linux 4.13

## Description

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

ipv6: avoid use-after-free in ip6\_fragment()

Blamed commit claimed rcu\_read\_lock() was held by ip6\_fragment() callers.

It seems to not be always true, at least for UDP stack.

syzbot reported:

BUG: KASAN: use-after-free in ip6\_dst\_idev include/net/ip6\_fib.h:245 \[inline\]
BUG: KASAN: use-after-free in ip6\_fragment+0x2724/0x2770 net/ipv6/ip6\_output.c:951
Read of size 8 at addr ffff88801d403e80 by task syz-executor.3/7618

CPU: 1 PID: 7618 Comm: syz-executor.3 Not tainted 6.1.0-rc6-syzkaller-00012-g4312098baf37 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xd1/0x138 lib/dump\_stack.c:106
 print\_address\_description mm/kasan/report.c:284 \[inline\]
 print\_report+0x15e/0x45d mm/kasan/report.c:395
 kasan\_report+0xbf/0x1f0 mm/kasan/report.c:495
 ip6\_dst\_idev include/net/ip6\_fib.h:245 \[inline\]
 ip6\_fragment+0x2724/0x2770 net/ipv6/ip6\_output.c:951
 \_\_ip6\_finish\_output net/ipv6/ip6\_output.c:193 \[inline\]
 ip6\_finish\_output+0x9a3/0x1170 net/ipv6/ip6\_output.c:206
 NF\_HOOK\_COND include/linux/netfilter.h:291 \[inline\]
 ip6\_output+0x1f1/0x540 net/ipv6/ip6\_output.c:227
 dst\_output include/net/dst.h:445 \[inline\]
 ip6\_local\_out+0xb3/0x1a0 net/ipv6/output\_core.c:161
 ip6\_send\_skb+0xbb/0x340 net/ipv6/ip6\_output.c:1966
 udp\_v6\_send\_skb+0x82a/0x18a0 net/ipv6/udp.c:1286
 udp\_v6\_push\_pending\_frames+0x140/0x200 net/ipv6/udp.c:1313
 udpv6\_sendmsg+0x18da/0x2c80 net/ipv6/udp.c:1606
 inet6\_sendmsg+0x9d/0xe0 net/ipv6/af\_inet6.c:665
 sock\_sendmsg\_nosec net/socket.c:714 \[inline\]
 sock\_sendmsg+0xd3/0x120 net/socket.c:734
 sock\_write\_iter+0x295/0x3d0 net/socket.c:1108
 call\_write\_iter include/linux/fs.h:2191 \[inline\]
 new\_sync\_write fs/read\_write.c:491 \[inline\]
 vfs\_write+0x9ed/0xdd0 fs/read\_write.c:584
 ksys\_write+0x1ec/0x250 fs/read\_write.c:637
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
RIP: 0033:0x7fde3588c0d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007fde365b6168 EFLAGS: 00000246 ORIG\_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fde359ac050 RCX: 00007fde3588c0d9
RDX: 000000000000ffdc RSI: 00000000200000c0 RDI: 000000000000000a
RBP: 00007fde358e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fde35acfb1f R14: 00007fde365b6300 R15: 0000000000022000
 \</TASK\>

Allocated by task 7618:
 kasan\_save\_stack+0x22/0x40 mm/kasan/common.c:45
 kasan\_set\_track+0x25/0x30 mm/kasan/common.c:52
 \_\_kasan\_slab\_alloc+0x82/0x90 mm/kasan/common.c:325
 kasan\_slab\_alloc include/linux/kasan.h:201 \[inline\]
 slab\_post\_alloc\_hook mm/slab.h:737 \[inline\]
 slab\_alloc\_node mm/slub.c:3398 \[inline\]
 slab\_alloc mm/slub.c:3406 \[inline\]
 \_\_kmem\_cache\_alloc\_lru mm/slub.c:3413 \[inline\]
 kmem\_cache\_alloc+0x2b4/0x3d0 mm/slub.c:3422
 dst\_alloc+0x14a/0x1f0 net/core/dst.c:92
 ip6\_dst\_alloc+0x32/0xa0 net/ipv6/route.c:344
 ip6\_rt\_pcpu\_alloc net/ipv6/route.c:1369 \[inline\]
 rt6\_make\_pcpu\_route net/ipv6/route.c:1417 \[inline\]
 ip6\_pol\_route+0x901/0x1190 net/ipv6/route.c:2254
 pol\_lookup\_func include/net/ip6\_fib.h:582 \[inline\]
 fib6\_rule\_lookup+0x52e/0x6f0 net/ipv6/fib6\_rules.c:121
 ip6\_route\_output\_flags\_noref+0x2e6/0x380 net/ipv6/route.c:2625
 ip6\_route\_output\_flags+0x76/0x320 net/ipv6/route.c:2638
 ip6\_route\_output include/net/ip6\_route.h:98 \[inline\]
 ip6\_dst\_lookup\_tail+0x5ab/0x1620 net/ipv6/ip6\_output.c:1092
 ip6\_dst\_lookup\_flow+0x90/0x1d0 net/ipv6/ip6\_output.c:1222
 ip6\_sk\_dst\_lookup\_flow+0x553/0x980 net/ipv6/ip6\_output.c:1260
 udpv6\_sendmsg+0x151d/0x2c80 net/ipv6/udp.c:1554
 inet6\_sendmsg+0x9d/0xe0 net/ipv6/af\_inet6.c:665
 sock\_sendmsg\_nosec n
---truncated---

## Affected and fixed versions

- Linux: \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< b3d7ff8c04a83279fb7641fc4d5aa82a602df7c0; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 6b6d3be3661bff2746cab26147bd629aa034e094; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 8208d7e56b1e579320b9ff3712739ad2e63e1f86; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 7390c70bd431cbfa6951477e2c80a301643e284b; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 9b1a468a455d8319041528778d0e684a4c062792; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 803e84867de59a1e5d126666d25eb4860cfd2ebe (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-48956.md
Affected: Linux >= 1758fd4688eb92c796e75bdb1d256dc558ef9581, < b3d7ff8c04a83279fb7641fc4d5aa82a602df7c0; >= 1758fd4688eb92c796e75bdb1d256dc558ef9581, < 7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9; >= 1758fd4688eb92c796e75bdb1d256dc558ef9581, < 6b6d3be3661bff2746cab26147bd629aa034e094; >= 1758fd4688eb92c796e75bd…
Fixed in: Linux 7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9, Linux 6b6d3be3661bff2746cab26147bd629aa034e094, Linux 8208d7e56b1e579320b9ff3712739ad2e63e1f86, Linux 7390c70bd431cbfa6951477e2c80a301643e284b, Linux 9b1a468a455d8319041528778d0e684a4c062792, Linux 803e84867de59a1e5d126666d25eb4860cfd2ebe

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

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

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

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

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

Linux \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< b3d7ff8c04a83279fb7641fc4d5aa82a602df7c0; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 6b6d3be3661bff2746cab26147bd629aa034e094; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 8208d7e56b1e579320b9ff3712739ad2e63e1f86; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 7390c70bd431cbfa6951477e2c80a301643e284b; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 9b1a468a455d8319041528778d0e684a4c062792; \>= 1758fd4688eb92c796e75bdb1d256dc558ef9581, \< 803e84867de59a1e5d126666d25eb4860cfd2ebe; Linux 4.13.

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

Yes. Fixed in Linux 7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9, Linux 6b6d3be3661bff2746cab26147bd629aa034e094, Linux 8208d7e56b1e579320b9ff3712739ad2e63e1f86, Linux 7390c70bd431cbfa6951477e2c80a301643e284b, Linux 9b1a468a455d8319041528778d0e684a4c062792, Linux 803e84867de59a1e5d126666d25eb4860cfd2ebe. Upgrade Linux to 803e84867de59a1e5d126666d25eb4860cfd2ebe or later.

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

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/b3d7ff8c04a83279fb7641fc4d5aa82a602df7c0>
- patch: <https://git.kernel.org/stable/c/7e0dcd5f3ade221a6126278aca60c8ab4cc3bce9>
- patch: <https://git.kernel.org/stable/c/6b6d3be3661bff2746cab26147bd629aa034e094>
- patch: <https://git.kernel.org/stable/c/8208d7e56b1e579320b9ff3712739ad2e63e1f86>
- patch: <https://git.kernel.org/stable/c/7390c70bd431cbfa6951477e2c80a301643e284b>
- patch: <https://git.kernel.org/stable/c/9b1a468a455d8319041528778d0e684a4c062792>
- patch: <https://git.kernel.org/stable/c/803e84867de59a1e5d126666d25eb4860cfd2ebe>

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

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