Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-22995
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-23 Jan, 2026 | 15:24
Updated At-09 Feb, 2026 | 08:36
Rejected At-
▼CVE Numbering Authority (CNA)
ublk: fix use-after-free in ublk_partition_scan_work

In the Linux kernel, the following vulnerability has been resolved: ublk: fix use-after-free in ublk_partition_scan_work A race condition exists between the async partition scan work and device teardown that can lead to a use-after-free of ub->ub_disk: 1. ublk_ctrl_start_dev() schedules partition_scan_work after add_disk() 2. ublk_stop_dev() calls ublk_stop_dev_unlocked() which does: - del_gendisk(ub->ub_disk) - ublk_detach_disk() sets ub->ub_disk = NULL - put_disk() which may free the disk 3. The worker ublk_partition_scan_work() then dereferences ub->ub_disk leading to UAF Fix this by using ublk_get_disk()/ublk_put_disk() in the worker to hold a reference to the disk during the partition scan. The spinlock in ublk_get_disk() synchronizes with ublk_detach_disk() ensuring the worker either gets a valid reference or sees NULL and exits early. Also change flush_work() to cancel_work_sync() to avoid running the partition scan work unnecessarily when the disk is already detached.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/block/ublk_drv.c
Default Status
unaffected
Versions
Affected
  • From 63dfbcd59b4b823eac4441efff10b1c303c8f49f before 72e28774e9644c2bdbb4920842fbf77103a15a85 (git)
  • From 7fc4da6a304bdcd3de14fc946dc2c19437a9cc5a before f0d385f6689f37a2828c686fb279121df006b4cb (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/block/ublk_drv.c
Default Status
unaffected
Versions
Affected
  • From 6.18.4 before 6.18.6 (semver)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/72e28774e9644c2bdbb4920842fbf77103a15a85
N/A
https://git.kernel.org/stable/c/f0d385f6689f37a2828c686fb279121df006b4cb
N/A
Hyperlink: https://git.kernel.org/stable/c/72e28774e9644c2bdbb4920842fbf77103a15a85
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/f0d385f6689f37a2828c686fb279121df006b4cb
Resource: N/A
Details not found