# CVE-2025-38196: io\_uring/rsrc: validate buffer count with offset for cloning

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-07-04T13:37:19.191Z
- **Modified:** 2026-06-17T09:16:22.067Z

## Who should check

- Anyone running Linux \>= b16e920a1909da6799c43000db730d8fcdcae907, \< 0e23ac818f3afb16660b0ba384875d56a7013879; \>= b16e920a1909da6799c43000db730d8fcdcae907, \< 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28
- Anyone running Linux 6.13

## Description

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

io\_uring/rsrc: validate buffer count with offset for cloning

syzbot reports that it can trigger a WARN\_ON() for kmalloc() attempt
that's too big:

WARNING: CPU: 0 PID: 6488 at mm/slub.c:5024 \_\_kvmalloc\_node\_noprof+0x520/0x640 mm/slub.c:5024
Modules linked in:
CPU: 0 UID: 0 PID: 6488 Comm: syz-executor312 Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e \#0 PREEMPT
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : \_\_kvmalloc\_node\_noprof+0x520/0x640 mm/slub.c:5024
lr : \_\_do\_kmalloc\_node mm/slub.c:-1 \[inline\]
lr : \_\_kvmalloc\_node\_noprof+0x3b4/0x640 mm/slub.c:5012
sp : ffff80009cfd7a90
x29: ffff80009cfd7ac0 x28: ffff0000dd52a120 x27: 0000000000412dc0
x26: 0000000000000178 x25: ffff7000139faf70 x24: 0000000000000000
x23: ffff800082f4cea8 x22: 00000000ffffffff x21: 000000010cd004a8
x20: ffff0000d75816c0 x19: ffff0000dd52a000 x18: 00000000ffffffff
x17: ffff800092f39000 x16: ffff80008adbe9e4 x15: 0000000000000005
x14: 1ffff000139faf1c x13: 0000000000000000 x12: 0000000000000000
x11: ffff7000139faf21 x10: 0000000000000003 x9 : ffff80008f27b938
x8 : 0000000000000002 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 00000000ffffffff x4 : 0000000000400dc0 x3 : 0000000200000000
x2 : 000000010cd004a8 x1 : ffff80008b3ebc40 x0 : 0000000000000001
Call trace:
 \_\_kvmalloc\_node\_noprof+0x520/0x640 mm/slub.c:5024 (P)
 kvmalloc\_array\_node\_noprof include/linux/slab.h:1065 \[inline\]
 io\_rsrc\_data\_alloc io\_uring/rsrc.c:206 \[inline\]
 io\_clone\_buffers io\_uring/rsrc.c:1178 \[inline\]
 io\_register\_clone\_buffers+0x484/0xa14 io\_uring/rsrc.c:1287
 \_\_io\_uring\_register io\_uring/register.c:815 \[inline\]
 \_\_do\_sys\_io\_uring\_register io\_uring/register.c:926 \[inline\]
 \_\_se\_sys\_io\_uring\_register io\_uring/register.c:903 \[inline\]
 \_\_arm64\_sys\_io\_uring\_register+0x42c/0xea8 io\_uring/register.c:903
 \_\_invoke\_syscall arch/arm64/kernel/syscall.c:35 \[inline\]
 invoke\_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0\_svc\_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do\_el0\_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0\_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767
 el0t\_64\_sync\_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786
 el0t\_64\_sync+0x198/0x19c arch/arm64/kernel/entry.S:600

which is due to offset + buffer\_count being too large. The registration
code checks only the total count of buffers, but given that the indexing
is an array, it should also check offset + count. That can't exceed
IORING\_MAX\_REG\_BUFFERS either, as there's no way to reach buffers beyond
that limit.

There's no issue with registrering a table this large, outside of the
fact that it's pointless to register buffers that cannot be reached, and
that it can trigger this kmalloc() warning for attempting an allocation
that is too large.

## Affected and fixed versions

- Linux: \>= b16e920a1909da6799c43000db730d8fcdcae907, \< 0e23ac818f3afb16660b0ba384875d56a7013879; \>= b16e920a1909da6799c43000db730d8fcdcae907, \< 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38196.md
Affected: Linux >= b16e920a1909da6799c43000db730d8fcdcae907, < 0e23ac818f3afb16660b0ba384875d56a7013879; >= b16e920a1909da6799c43000db730d8fcdcae907, < 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28; Linux 6.13
Fixed in: Linux 0e23ac818f3afb16660b0ba384875d56a7013879, Linux 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28

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

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

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

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

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

Linux \>= b16e920a1909da6799c43000db730d8fcdcae907, \< 0e23ac818f3afb16660b0ba384875d56a7013879; \>= b16e920a1909da6799c43000db730d8fcdcae907, \< 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28; Linux 6.13.

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

Yes. Fixed in Linux 0e23ac818f3afb16660b0ba384875d56a7013879, Linux 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28. Upgrade Linux to 1d27f11bf02b38c431e49a17dee5c10a2b4c2e28 or later.

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

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/0e23ac818f3afb16660b0ba384875d56a7013879>
- patch: <https://git.kernel.org/stable/c/1d27f11bf02b38c431e49a17dee5c10a2b4c2e28>

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

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