# CVE-2022-48839: net/packet: fix slab-out-of-bounds access in packet\_recvmsg()

> 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.33% (percentile 18, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2024-07-16T12:25:10.521Z
- **Modified:** 2026-08-05T08:52:36.447Z

## Who should check

- Anyone running Linux \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< b9d5772d60f8e7ef34e290f72fc20e3a4883e7d0; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< b1e27cda1e3c12b705875bb7e247a97168580e33; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< a33dd1e6693f80d805155b3f69c18c2f642915da; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< 268dcf1f7b3193bc446ec3d14e08a240e9561e4d; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< 70b7b3c055fd4a464da8da55ff4c1f84269f9b02; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< a055f5f2841f7522b44a2b1eccb1951b4b03d51a; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< ef591b35176029fdefea38e8388ffa371e18f4b2; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< c700525fcc06b05adfea78039de02628af79e07a
- Anyone running Linux 2.6.14

## Description

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

net/packet: fix slab-out-of-bounds access in packet\_recvmsg()

syzbot found that when an AF\_PACKET socket is using PACKET\_COPY\_THRESH
and mmap operations, tpacket\_rcv() is queueing skbs with
garbage in skb-\>cb\[\], triggering a too big copy \[1\]

Presumably, users of af\_packet using mmap() already gets correct
metadata from the mapped buffer, we can simply make sure
to clear 12 bytes that might be copied to user space later.

BUG: KASAN: stack-out-of-bounds in memcpy include/linux/fortify-string.h:225 \[inline\]
BUG: KASAN: stack-out-of-bounds in packet\_recvmsg+0x56c/0x1150 net/packet/af\_packet.c:3489
Write of size 165 at addr ffffc9000385fb78 by task syz-executor233/3631

CPU: 0 PID: 3631 Comm: syz-executor233 Not tainted 5.17.0-rc7-syzkaller-02396-g0b3660695e80 \#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+0xf/0x336 mm/kasan/report.c:255
 \_\_kasan\_report mm/kasan/report.c:442 \[inline\]
 kasan\_report.cold+0x83/0xdf mm/kasan/report.c:459
 check\_region\_inline mm/kasan/generic.c:183 \[inline\]
 kasan\_check\_range+0x13d/0x180 mm/kasan/generic.c:189
 memcpy+0x39/0x60 mm/kasan/shadow.c:66
 memcpy include/linux/fortify-string.h:225 \[inline\]
 packet\_recvmsg+0x56c/0x1150 net/packet/af\_packet.c:3489
 sock\_recvmsg\_nosec net/socket.c:948 \[inline\]
 sock\_recvmsg net/socket.c:966 \[inline\]
 sock\_recvmsg net/socket.c:962 \[inline\]
 \_\_\_\_sys\_recvmsg+0x2c4/0x600 net/socket.c:2632
 \_\_\_sys\_recvmsg+0x127/0x200 net/socket.c:2674
 \_\_sys\_recvmsg+0xe2/0x1a0 net/socket.c:2704
 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:0x7fdfd5954c29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcf8e71e48 EFLAGS: 00000246 ORIG\_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fdfd5954c29
RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000000005
RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcf8e71e60
R13: 00000000000f4240 R14: 000000000000c1ff R15: 00007ffcf8e71e54
 \</TASK\>

addr ffffc9000385fb78 is located in stack of task syz-executor233/3631 at offset 32 in frame:
 \_\_\_\_sys\_recvmsg+0x0/0x600 include/linux/uio.h:246

this frame has 1 object:
 \[32, 160) 'addr'

Memory state around the buggy address:
 ffffc9000385fa80: 00 04 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00
 ffffc9000385fb00: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00
\>ffffc9000385fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f3
                                                                ^
 ffffc9000385fc00: f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
 ffffc9000385fc80: f1 f1 f1 00 f2 f2 f2 00 f2 f2 f2 00 00 00 00 00
==================================================================

## Affected and fixed versions

- Linux: \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< b9d5772d60f8e7ef34e290f72fc20e3a4883e7d0; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< b1e27cda1e3c12b705875bb7e247a97168580e33; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< a33dd1e6693f80d805155b3f69c18c2f642915da; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< 268dcf1f7b3193bc446ec3d14e08a240e9561e4d; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< 70b7b3c055fd4a464da8da55ff4c1f84269f9b02; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< a055f5f2841f7522b44a2b1eccb1951b4b03d51a; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< ef591b35176029fdefea38e8388ffa371e18f4b2; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< c700525fcc06b05adfea78039de02628af79e07a (cvelist)
- Linux: 2.6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48839.md
Affected: Linux >= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, < b9d5772d60f8e7ef34e290f72fc20e3a4883e7d0; >= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, < b1e27cda1e3c12b705875bb7e247a97168580e33; >= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, < a33dd1e6693f80d805155b3f69c18c2f642915da; >= 0fb375fb9b93b7d822debc6…
Fixed in: Linux 268dcf1f7b3193bc446ec3d14e08a240e9561e4d, Linux 70b7b3c055fd4a464da8da55ff4c1f84269f9b02

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

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

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

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

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

Linux \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< b9d5772d60f8e7ef34e290f72fc20e3a4883e7d0; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< b1e27cda1e3c12b705875bb7e247a97168580e33; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< a33dd1e6693f80d805155b3f69c18c2f642915da; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< 268dcf1f7b3193bc446ec3d14e08a240e9561e4d; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< 70b7b3c055fd4a464da8da55ff4c1f84269f9b02; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< a055f5f2841f7522b44a2b1eccb1951b4b03d51a; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< ef591b35176029fdefea38e8388ffa371e18f4b2; \>= 0fb375fb9b93b7d822debc6a734052337ccfdb1f, \< c700525fcc06b05adfea78039de02628af79e07a; Linux 2.6.14.

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

Yes. Fixed in Linux 268dcf1f7b3193bc446ec3d14e08a240e9561e4d, Linux 70b7b3c055fd4a464da8da55ff4c1f84269f9b02. No fix listed yet: follow the vendor advisory.

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

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/b9d5772d60f8e7ef34e290f72fc20e3a4883e7d0>
- patch: <https://git.kernel.org/stable/c/b1e27cda1e3c12b705875bb7e247a97168580e33>
- patch: <https://git.kernel.org/stable/c/a33dd1e6693f80d805155b3f69c18c2f642915da>
- patch: <https://git.kernel.org/stable/c/268dcf1f7b3193bc446ec3d14e08a240e9561e4d>
- patch: <https://git.kernel.org/stable/c/70b7b3c055fd4a464da8da55ff4c1f84269f9b02>
- patch: <https://git.kernel.org/stable/c/a055f5f2841f7522b44a2b1eccb1951b4b03d51a>
- patch: <https://git.kernel.org/stable/c/ef591b35176029fdefea38e8388ffa371e18f4b2>
- patch: <https://git.kernel.org/stable/c/c700525fcc06b05adfea78039de02628af79e07a>

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

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