AZL-118394: CVE-2026-143235 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ublk: publish a new device by its id only once it is set up
ADDDEV stores the device in ublkindexidr when it allocates the id, and control commands find it there as soon as ublkaddchdev() has initialized its struct device, before the char device is added. If devsetname() or cdevdeviceadd() then fails, ublkaddchdev() drops the initial reference to free the device. A DELDEV that found the device meanwhile waits for ublkctlmutex, then calls ublkremove(): cdevdevicedel() of a device that was never added, and a second put of the initial reference, which frees the device under the callers still holding references.
Reserve the id with a NULL entry, which idrfind() and the idr iterators skip, and store the device once ublkaddchdev() succeeded.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the race?
The issue requires an ADD_DEV operation to expose a partially initialized ublk device, followed by failure in dev_set_name() or cdev_device_add(). A concurrent DEL_DEV operation must find that device and remove it while callers still hold references.
Which systems should be checked?
Check Azure Linux systems running the kernel package version 6.6.161.1-1, particularly where ublk devices and their control operations are in use. The affected path involves ADD_DEV and DEL_DEV control commands.