# CVE-2025-21631: block, bfq: fix waker\_bfqq UAF after bfq\_split\_bfqq()

> 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:** 2025-01-19T10:17:49.439Z
- **Modified:** 2026-08-05T11:53:16.126Z

## Who should check

- Anyone running Linux \>= 63a07379fdb6c72450cb05294461c6016b8b7726, \< f587c1ac68956c4703857d650d9b1cd7bb2ac4d7; \>= de0456460f2abf921e356ed2bd8da87a376680bd, \< 2550149fcdf2934155ff625d76ad4e3d4b25bbc6; \>= 0780451f03bf518bc032a7c584de8f92e2d39d7f, \< be3eed59ac01f429ac10aaa46e26f653bcf581ab; \>= 1ba0403ac6447f2d63914fb760c44a3b19c44eaf, \< bc2aeb35ff167e0c6b0cedf0c96a5c41e6cba1ed; \>= 1ba0403ac6447f2d63914fb760c44a3b19c44eaf, \< fcede1f0a043ccefe9bc6ad57f12718e42f63f1d; 0b8bda0ff17156cd3f60944527c9d8c9f99f1583; cae58d19121a70329cf971359e2518c93fec04fe; \>= 5.15.168, \< 5.15.177; \>= 6.1.113, \< 6.1.125; \>= 6.6.54, \< 6.6.72; …
- Anyone running Linux 6.12

## Description

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

block, bfq: fix waker\_bfqq UAF after bfq\_split\_bfqq()

Our syzkaller report a following UAF for v6.6:

BUG: KASAN: slab-use-after-free in bfq\_init\_rq+0x175d/0x17a0 block/bfq-iosched.c:6958
Read of size 8 at addr ffff8881b57147d8 by task fsstress/232726

CPU: 2 PID: 232726 Comm: fsstress Not tainted 6.6.0-g3629d1885222 \#39
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0x91/0xf0 lib/dump\_stack.c:106
 print\_address\_description.constprop.0+0x66/0x300 mm/kasan/report.c:364
 print\_report+0x3e/0x70 mm/kasan/report.c:475
 kasan\_report+0xb8/0xf0 mm/kasan/report.c:588
 hlist\_add\_head include/linux/list.h:1023 \[inline\]
 bfq\_init\_rq+0x175d/0x17a0 block/bfq-iosched.c:6958
 bfq\_insert\_request.isra.0+0xe8/0xa20 block/bfq-iosched.c:6271
 bfq\_insert\_requests+0x27f/0x390 block/bfq-iosched.c:6323
 blk\_mq\_insert\_request+0x290/0x8f0 block/blk-mq.c:2660
 blk\_mq\_submit\_bio+0x1021/0x15e0 block/blk-mq.c:3143
 \_\_submit\_bio+0xa0/0x6b0 block/blk-core.c:639
 \_\_submit\_bio\_noacct\_mq block/blk-core.c:718 \[inline\]
 submit\_bio\_noacct\_nocheck+0x5b7/0x810 block/blk-core.c:747
 submit\_bio\_noacct+0xca0/0x1990 block/blk-core.c:847
 \_\_ext4\_read\_bh fs/ext4/super.c:205 \[inline\]
 ext4\_read\_bh+0x15e/0x2e0 fs/ext4/super.c:230
 \_\_read\_extent\_tree\_block+0x304/0x6f0 fs/ext4/extents.c:567
 ext4\_find\_extent+0x479/0xd20 fs/ext4/extents.c:947
 ext4\_ext\_map\_blocks+0x1a3/0x2680 fs/ext4/extents.c:4182
 ext4\_map\_blocks+0x929/0x15a0 fs/ext4/inode.c:660
 ext4\_iomap\_begin\_report+0x298/0x480 fs/ext4/inode.c:3569
 iomap\_iter+0x3dd/0x1010 fs/iomap/iter.c:91
 iomap\_fiemap+0x1f4/0x360 fs/iomap/fiemap.c:80
 ext4\_fiemap+0x181/0x210 fs/ext4/extents.c:5051
 ioctl\_fiemap.isra.0+0x1b4/0x290 fs/ioctl.c:220
 do\_vfs\_ioctl+0x31c/0x11a0 fs/ioctl.c:811
 \_\_do\_sys\_ioctl fs/ioctl.c:869 \[inline\]
 \_\_se\_sys\_ioctl+0xae/0x190 fs/ioctl.c:857
 do\_syscall\_x64 arch/x86/entry/common.c:51 \[inline\]
 do\_syscall\_64+0x70/0x120 arch/x86/entry/common.c:81
 entry\_SYSCALL\_64\_after\_hwframe+0x78/0xe2

Allocated by task 232719:
 kasan\_save\_stack+0x22/0x50 mm/kasan/common.c:45
 kasan\_set\_track+0x25/0x30 mm/kasan/common.c:52
 \_\_kasan\_slab\_alloc+0x87/0x90 mm/kasan/common.c:328
 kasan\_slab\_alloc include/linux/kasan.h:188 \[inline\]
 slab\_post\_alloc\_hook mm/slab.h:768 \[inline\]
 slab\_alloc\_node mm/slub.c:3492 \[inline\]
 kmem\_cache\_alloc\_node+0x1b8/0x6f0 mm/slub.c:3537
 bfq\_get\_queue+0x215/0x1f00 block/bfq-iosched.c:5869
 bfq\_get\_bfqq\_handle\_split+0x167/0x5f0 block/bfq-iosched.c:6776
 bfq\_init\_rq+0x13a4/0x17a0 block/bfq-iosched.c:6938
 bfq\_insert\_request.isra.0+0xe8/0xa20 block/bfq-iosched.c:6271
 bfq\_insert\_requests+0x27f/0x390 block/bfq-iosched.c:6323
 blk\_mq\_insert\_request+0x290/0x8f0 block/blk-mq.c:2660
 blk\_mq\_submit\_bio+0x1021/0x15e0 block/blk-mq.c:3143
 \_\_submit\_bio+0xa0/0x6b0 block/blk-core.c:639
 \_\_submit\_bio\_noacct\_mq block/blk-core.c:718 \[inline\]
 submit\_bio\_noacct\_nocheck+0x5b7/0x810 block/blk-core.c:747
 submit\_bio\_noacct+0xca0/0x1990 block/blk-core.c:847
 \_\_ext4\_read\_bh fs/ext4/super.c:205 \[inline\]
 ext4\_read\_bh\_nowait+0x15a/0x240 fs/ext4/super.c:217
 ext4\_read\_bh\_lock+0xac/0xd0 fs/ext4/super.c:242
 ext4\_bread\_batch+0x268/0x500 fs/ext4/inode.c:958
 \_\_ext4\_find\_entry+0x448/0x10f0 fs/ext4/namei.c:1671
 ext4\_lookup\_entry fs/ext4/namei.c:1774 \[inline\]
 ext4\_lookup.part.0+0x359/0x6f0 fs/ext4/namei.c:1842
 ext4\_lookup+0x72/0x90 fs/ext4/namei.c:1839
 \_\_lookup\_slow+0x257/0x480 fs/namei.c:1696
 lookup\_slow fs/namei.c:1713 \[inline\]
 walk\_component+0x454/0x5c0 fs/namei.c:2004
 link\_path\_walk.part.0+0x773/0xda0 fs/namei.c:2331
 link\_path\_walk fs/namei.c:3826 \[inline\]
 path\_openat+0x1b9/0x520 fs/namei.c:3826
 do\_filp\_open+0x1b7/0x400 fs/namei.c:3857
 do\_sys\_openat2+0x5dc/0x6e0 fs/open.c:1428
 do\_sys\_open fs/open.c:1443 \[inline\]
 \_\_do\_sys\_openat fs/open.c:1459 \[inline\]
 \_\_se\_sys\_openat fs/open.c:1454 \[inline\]
 \_\_x64\_sys\_openat+0x148/0x200 fs/open.c:1454
 do\_syscall\_x64 arch/x86/entry/common.c:51 \[inline\]
 do\_syscall\_6
---truncated---

## Affected and fixed versions

- Linux: \>= 63a07379fdb6c72450cb05294461c6016b8b7726, \< f587c1ac68956c4703857d650d9b1cd7bb2ac4d7; \>= de0456460f2abf921e356ed2bd8da87a376680bd, \< 2550149fcdf2934155ff625d76ad4e3d4b25bbc6; \>= 0780451f03bf518bc032a7c584de8f92e2d39d7f, \< be3eed59ac01f429ac10aaa46e26f653bcf581ab; \>= 1ba0403ac6447f2d63914fb760c44a3b19c44eaf, \< bc2aeb35ff167e0c6b0cedf0c96a5c41e6cba1ed; \>= 1ba0403ac6447f2d63914fb760c44a3b19c44eaf, \< fcede1f0a043ccefe9bc6ad57f12718e42f63f1d; 0b8bda0ff17156cd3f60944527c9d8c9f99f1583; cae58d19121a70329cf971359e2518c93fec04fe; \>= 5.15.168, \< 5.15.177; \>= 6.1.113, \< 6.1.125; \>= 6.6.54, \< 6.6.72; … (cvelist)
- Linux: 6.12 (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-21631. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21631.md
Affected: Linux >= 63a07379fdb6c72450cb05294461c6016b8b7726, < f587c1ac68956c4703857d650d9b1cd7bb2ac4d7; >= de0456460f2abf921e356ed2bd8da87a376680bd, < 2550149fcdf2934155ff625d76ad4e3d4b25bbc6; >= 0780451f03bf518bc032a7c584de8f92e2d39d7f, < be3eed59ac01f429ac10aaa46e26f653bcf581ab; >= 1ba0403ac6447f2d63914fb…
Fixed in: Linux 2550149fcdf2934155ff625d76ad4e3d4b25bbc6, Linux 5.15.177, Linux 6.1.125, Linux 6.6.72

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

There is no confirmed exploitation: CVE-2025-21631 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-2025-21631?

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

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

Linux \>= 63a07379fdb6c72450cb05294461c6016b8b7726, \< f587c1ac68956c4703857d650d9b1cd7bb2ac4d7; \>= de0456460f2abf921e356ed2bd8da87a376680bd, \< 2550149fcdf2934155ff625d76ad4e3d4b25bbc6; \>= 0780451f03bf518bc032a7c584de8f92e2d39d7f, \< be3eed59ac01f429ac10aaa46e26f653bcf581ab; \>= 1ba0403ac6447f2d63914fb760c44a3b19c44eaf, \< bc2aeb35ff167e0c6b0cedf0c96a5c41e6cba1ed; \>= 1ba0403ac6447f2d63914fb760c44a3b19c44eaf, \< fcede1f0a043ccefe9bc6ad57f12718e42f63f1d; 0b8bda0ff17156cd3f60944527c9d8c9f99f1583; cae58d19121a70329cf971359e2518c93fec04fe; \>= 5.15.168, \< 5.15.177; \>= 6.1.113, \< 6.1.125; \>= 6.6.54, \< 6.6.72; …; Linux 6.12.

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

Yes. Fixed in Linux 2550149fcdf2934155ff625d76ad4e3d4b25bbc6, Linux 5.15.177, Linux 6.1.125, Linux 6.6.72. No fix listed yet: follow the vendor advisory.

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

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/f587c1ac68956c4703857d650d9b1cd7bb2ac4d7>
- patch: <https://git.kernel.org/stable/c/2550149fcdf2934155ff625d76ad4e3d4b25bbc6>
- patch: <https://git.kernel.org/stable/c/be3eed59ac01f429ac10aaa46e26f653bcf581ab>
- patch: <https://git.kernel.org/stable/c/bc2aeb35ff167e0c6b0cedf0c96a5c41e6cba1ed>
- patch: <https://git.kernel.org/stable/c/fcede1f0a043ccefe9bc6ad57f12718e42f63f1d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

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

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