Bug 2347780 (CVE-2022-49694) - CVE-2022-49694 kernel: block: disable the elevator int del_gendisk
Summary: CVE-2022-49694 kernel: block: disable the elevator int del_gendisk
Keywords:
Status: NEW
Alias: CVE-2022-49694
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:06 UTC by OSIDB Bzimport
Modified: 2025-02-27 09:25 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:06:29 UTC
In the Linux kernel, the following vulnerability has been resolved:

block: disable the elevator int del_gendisk

The elevator is only used for file system requests, which are stopped in
del_gendisk.  Move disabling the elevator and freeing the scheduler tags
to the end of del_gendisk instead of doing that work in disk_release and
blk_cleanup_queue to avoid a use after free on q->tag_set from
disk_release as the tag_set might not be alive at that point.

Move the blk_qos_exit call as well, as it just depends on the elevator
exit and would be the only reason to keep the not exactly cheap queue
freeze in disk_release.

Comment 1 Avinash Hanwate 2025-02-26 21:43:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022628-CVE-2022-49694-d7d9@gregkh/T


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