Look up another CVE · open CVE-2025-21836 in the interactive tracker
CVE-2025-21836
io_uring/kbuf: reallocate buf lists on upgrade
Published 2025-03-07 (19 months ago) by the Linux kernel CNA. Subsystem io_uring. Debian urgency: not yet assigned.
What to do, per Debian release
Debian's own status for CVE-2025-21836 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.12.16-1 | Update the kernel and reboot. Fixed in 6.12.16-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.12.16-1 | Update the kernel and reboot. Fixed in 6.12.16-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.12.16-1 | Update the kernel and reboot. Fixed in 6.12.16-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
IORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it was created for legacy selected buffer and has been emptied. It violates the requirement that most of the field should stay stable after publish. Always reallocate it instead.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
io_uring/kbuf.c
- What this is
- IO_URINGMAINTAINERS section matched on io_uring/ · io-uring@vger.kernel.org · Maintained
Check it on the machine
grep -w CONFIG_IO_URING /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
Show whether Debian builds this, per release
Debian builds this code. Every release below compiles the affected file into the kernels it ships.
- bookworm, trixie, forky, sidy
- y
- built into the kernel image on every flavour - only a patch removes it
- Build switch
- CONFIG_IO_URING
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2025-03-07 (19 months ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.25%, higher than 15.5% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- io_uring
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 5.19 | 6.6.79 | 146a185f6c05 |
| 5.19 | 6.12.16 | 7d0dc28dae83 |
| 5.19 | 6.13.4 | 2a5febbef40c |
| 5.19 | 6.14 | 8802766324e1 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- The vulnerable code is reached only through the io_uring_setup/io_uring_register syscalls; there is no network or adjacent path, so exploitation requires local access to issue syscalls.
- AC:LAttack complexity, low
- The attacker performs every step themselves (create a legacy buffer group, empty it, upgrade the same bgid via PBUF_RING, then mmap), controlling both sides of any race; the trigger is fully deterministic and reliable.
- PR:LPrivileges required, low
- io_uring is available to unprivileged users by default (kernel.io_uring_disabled=0) and provided-buffer registration needs no capability, so only a basic local user account is required.
- UI:NUser interaction, none
- The entire sequence is driven by the attacking process; no action by any other user or victim is needed.
- S:UScope, unchanged
- The corruption is confined to the kernel's own security authority (standard local privilege escalation) and does not cross a VM, IOMMU, or sandbox boundary.
- C:HConfidentiality impact, high
- The type confusion / use-after-free of the io_buffer_list and the retained user mapping to freed kernel pages give the attacker read access to reallocated kernel memory, enabling arbitrary kernel information disclosure.
- I:HIntegrity impact, high
- The same UAF and shared-page primitive give write access to freed/reallocated kernel memory, exploitable for arbitrary kernel write and privilege escalation as demonstrated for this io_uring buffer-ring bug class.
- A:HAvailability impact, high
- At minimum the type confusion and use-after-free corrupt kernel structures, causing an oops/panic and denial of service.