Bug 2350402 (CVE-2025-21832) - CVE-2025-21832 kernel: block: don't revert iter for -EIOCBQUEUED
Summary: CVE-2025-21832 kernel: block: don't revert iter for -EIOCBQUEUED
Keywords:
Status: NEW
Alias: CVE-2025-21832
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-06 17:01 UTC by OSIDB Bzimport
Modified: 2025-03-07 11:15 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-06 17:01:57 UTC
In the Linux kernel, the following vulnerability has been resolved:

block: don't revert iter for -EIOCBQUEUED

blkdev_read_iter() has a few odd checks, like gating the position and
count adjustment on whether or not the result is bigger-than-or-equal to
zero (where bigger than makes more sense), and not checking the return
value of blkdev_direct_IO() before doing an iov_iter_revert(). The
latter can lead to attempting to revert with a negative value, which
when passed to iov_iter_revert() as an unsigned value will lead to
throwing a WARN_ON() because unroll is bigger than MAX_RW_COUNT.

Be sane and don't revert for -EIOCBQUEUED, like what is done in other
spots.

Comment 1 Avinash Hanwate 2025-03-07 05:58:40 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025030635-CVE-2025-21832-943e@gregkh/T

Comment 3 Avinash Hanwate 2025-03-07 11:10:07 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025030635-CVE-2025-21832-943e@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.