# CVE-2022-48923: btrfs: prevent copying too big compressed lzo segment

> 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:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; 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.34% (percentile 21, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-08-22T01:32:58.084Z
- **Modified:** 2026-08-05T08:52:55.898Z

## Who should check

- Anyone running Linux \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< 8df508b7a44cd8110c726057cd28e8f8116885eb; \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< e326bd06cdde46df952361456232022298281d16; \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< 741b23a970a79d5d3a1db2d64fa2c7b375a4febb
- Anyone running Linux 5.15

## Description

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

btrfs: prevent copying too big compressed lzo segment

Compressed length can be corrupted to be a lot larger than memory
we have allocated for buffer.
This will cause memcpy in copy\_compressed\_segment to write outside
of allocated memory.

This mostly results in stuck read syscall but sometimes when using
btrfs send can get \#GP

  kernel: general protection fault, probably for non-canonical address 0x841551d5c1000: 0000 \[\#1\] PREEMPT SMP NOPTI
  kernel: CPU: 17 PID: 264 Comm: kworker/u256:7 Tainted: P           OE     5.17.0-rc2-1 \#12
  kernel: Workqueue: btrfs-endio btrfs\_work\_helper \[btrfs\]
  kernel: RIP: 0010:lzo\_decompress\_bio (./include/linux/fortify-string.h:225 fs/btrfs/lzo.c:322 fs/btrfs/lzo.c:394) btrfs
  Code starting with the faulting instruction
  ===========================================
     0:\*  48 8b 06                mov    (%rsi),%rax              \<-- trapping instruction
     3:   48 8d 79 08             lea    0x8(%rcx),%rdi
     7:   48 83 e7 f8             and    $0xfffffffffffffff8,%rdi
     b:   48 89 01                mov    %rax,(%rcx)
     e:   44 89 f0                mov    %r14d,%eax
    11:   48 8b 54 06 f8          mov    -0x8(%rsi,%rax,1),%rdx
  kernel: RSP: 0018:ffffb110812efd50 EFLAGS: 00010212
  kernel: RAX: 0000000000001000 RBX: 000000009ca264c8 RCX: ffff98996e6d8ff8
  kernel: RDX: 0000000000000064 RSI: 000841551d5c1000 RDI: ffffffff9500435d
  kernel: RBP: ffff989a3be856c0 R08: 0000000000000000 R09: 0000000000000000
  kernel: R10: 0000000000000000 R11: 0000000000001000 R12: ffff98996e6d8000
  kernel: R13: 0000000000000008 R14: 0000000000001000 R15: 000841551d5c1000
  kernel: FS:  0000000000000000(0000) GS:ffff98a09d640000(0000) knlGS:0000000000000000
  kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  kernel: CR2: 00001e9f984d9ea8 CR3: 000000014971a000 CR4: 00000000003506e0
  kernel: Call Trace:
  kernel:  \<TASK\>
  kernel: end\_compressed\_bio\_read (fs/btrfs/compression.c:104 fs/btrfs/compression.c:1363 fs/btrfs/compression.c:323) btrfs
  kernel: end\_workqueue\_fn (fs/btrfs/disk-io.c:1923) btrfs
  kernel: btrfs\_work\_helper (fs/btrfs/async-thread.c:326) btrfs
  kernel: process\_one\_work (./arch/x86/include/asm/jump\_label.h:27 ./include/linux/jump\_label.h:212 ./include/trace/events/workqueue.h:108 kernel/workqueue.c:2312)
  kernel: worker\_thread (./include/linux/list.h:292 kernel/workqueue.c:2455)
  kernel: ? process\_one\_work (kernel/workqueue.c:2397)
  kernel: kthread (kernel/kthread.c:377)
  kernel: ? kthread\_complete\_and\_exit (kernel/kthread.c:332)
  kernel: ret\_from\_fork (arch/x86/entry/entry\_64.S:301)
  kernel:  \</TASK\>

## Affected and fixed versions

- Linux: \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< 8df508b7a44cd8110c726057cd28e8f8116885eb; \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< e326bd06cdde46df952361456232022298281d16; \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< 741b23a970a79d5d3a1db2d64fa2c7b375a4febb (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-48923.md
Affected: Linux >= a6e66e6f8c1b685e11b778bef614480a9c1a5278, < 8df508b7a44cd8110c726057cd28e8f8116885eb; >= a6e66e6f8c1b685e11b778bef614480a9c1a5278, < e326bd06cdde46df952361456232022298281d16; >= a6e66e6f8c1b685e11b778bef614480a9c1a5278, < 741b23a970a79d5d3a1db2d64fa2c7b375a4febb; Linux 5.15
Fixed in: Linux 8df508b7a44cd8110c726057cd28e8f8116885eb, Linux 741b23a970a79d5d3a1db2d64fa2c7b375a4febb

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

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

Linux \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< 8df508b7a44cd8110c726057cd28e8f8116885eb; \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< e326bd06cdde46df952361456232022298281d16; \>= a6e66e6f8c1b685e11b778bef614480a9c1a5278, \< 741b23a970a79d5d3a1db2d64fa2c7b375a4febb; Linux 5.15.

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

Yes. Fixed in Linux 8df508b7a44cd8110c726057cd28e8f8116885eb, Linux 741b23a970a79d5d3a1db2d64fa2c7b375a4febb. Upgrade Linux to 741b23a970a79d5d3a1db2d64fa2c7b375a4febb or later.

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

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/8df508b7a44cd8110c726057cd28e8f8116885eb>
- patch: <https://git.kernel.org/stable/c/e326bd06cdde46df952361456232022298281d16>
- patch: <https://git.kernel.org/stable/c/741b23a970a79d5d3a1db2d64fa2c7b375a4febb>

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

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