# CVE-2025-38496: dm-bufio: fix sched in atomic context

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-07-28T11:22:05.091Z
- **Modified:** 2026-06-17T09:16:59.000Z

## Who should check

- Anyone running Linux \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 469a39a33a9934af157299bf11c58f6e6cb53f85; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 68860d1ade385eef9fcdbf6552f061283091fdb8; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< b1bf1a782fdf5c482215c0c661b5da98b8e75773
- Anyone running Linux 6.4

## Description

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

dm-bufio: fix sched in atomic context

If "try\_verify\_in\_tasklet" is set for dm-verity, DM\_BUFIO\_CLIENT\_NO\_SLEEP
is enabled for dm-bufio. However, when bufio tries to evict buffers, there
is a chance to trigger scheduling in spin\_lock\_bh, the following warning
is hit:

BUG: sleeping function called from invalid context at drivers/md/dm-bufio.c:2745
in\_atomic(): 1, irqs\_disabled(): 0, non\_block: 0, pid: 123, name: kworker/2:2
preempt\_count: 201, expected: 0
RCU nest depth: 0, expected: 0
4 locks held by kworker/2:2/123:
 \#0: ffff88800a2d1548 ((wq\_completion)dm\_bufio\_cache){....}-{0:0}, at: process\_one\_work+0xe46/0x1970
 \#1: ffffc90000d97d20 ((work\_completion)(&dm\_bufio\_replacement\_work)){....}-{0:0}, at: process\_one\_work+0x763/0x1970
 \#2: ffffffff8555b528 (dm\_bufio\_clients\_lock){....}-{3:3}, at: do\_global\_cleanup+0x1ce/0x710
 \#3: ffff88801d5820b8 (&c-\>spinlock){....}-{2:2}, at: do\_global\_cleanup+0x2a5/0x710
Preemption disabled at:
\[\<0000000000000000\>\] 0x0
CPU: 2 UID: 0 PID: 123 Comm: kworker/2:2 Not tainted 6.16.0-rc3-g90548c634bd0 \#305 PREEMPT(voluntary)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
Workqueue: dm\_bufio\_cache do\_global\_cleanup
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x53/0x70
 \_\_might\_resched+0x360/0x4e0
 do\_global\_cleanup+0x2f5/0x710
 process\_one\_work+0x7db/0x1970
 worker\_thread+0x518/0xea0
 kthread+0x359/0x690
 ret\_from\_fork+0xf3/0x1b0
 ret\_from\_fork\_asm+0x1a/0x30
 \</TASK\>

That can be reproduced by:

  veritysetup format --data-block-size=4096 --hash-block-size=4096 /dev/vda /dev/vdb
  SIZE=$(blockdev --getsz /dev/vda)
  dmsetup create myverity -r --table "0 $SIZE verity 1 /dev/vda /dev/vdb 4096 4096 \<data\_blocks\> 1 sha256 \<root\_hash\> \<salt\> 1 try\_verify\_in\_tasklet"
  mount /dev/dm-0 /mnt -o ro
  echo 102400 \> /sys/module/dm\_bufio/parameters/max\_cache\_size\_bytes
  \[read files in /mnt\]

## Affected and fixed versions

- Linux: \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 469a39a33a9934af157299bf11c58f6e6cb53f85; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 68860d1ade385eef9fcdbf6552f061283091fdb8; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< b1bf1a782fdf5c482215c0c661b5da98b8e75773 (cvelist)
- Linux: 6.4 (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-2025-38496. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38496.md
Affected: Linux >= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, < 469a39a33a9934af157299bf11c58f6e6cb53f85; >= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, < 68860d1ade385eef9fcdbf6552f061283091fdb8; >= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, < 3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86; >= 450e8dee51aa6fa1dd0f640…
Fixed in: Linux 469a39a33a9934af157299bf11c58f6e6cb53f85, Linux 68860d1ade385eef9fcdbf6552f061283091fdb8, Linux 3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86

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-2025-38496 being exploited?

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

### How serious is CVE-2025-38496?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38496?

Linux \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 469a39a33a9934af157299bf11c58f6e6cb53f85; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 68860d1ade385eef9fcdbf6552f061283091fdb8; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< 3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86; \>= 450e8dee51aa6fa1dd0f64073e88235f1a77b035, \< b1bf1a782fdf5c482215c0c661b5da98b8e75773; Linux 6.4.

### Is there a fix for CVE-2025-38496?

Yes. Fixed in Linux 469a39a33a9934af157299bf11c58f6e6cb53f85, Linux 68860d1ade385eef9fcdbf6552f061283091fdb8, Linux 3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38496?

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/469a39a33a9934af157299bf11c58f6e6cb53f85>
- patch: <https://git.kernel.org/stable/c/68860d1ade385eef9fcdbf6552f061283091fdb8>
- patch: <https://git.kernel.org/stable/c/3edfdb1d4ef81320dae0caa40bc24baf8c1bbb86>
- patch: <https://git.kernel.org/stable/c/b1bf1a782fdf5c482215c0c661b5da98b8e75773>

## 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-2025-38496>

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