AZL-117971: CVE-2026-143028 affecting package kernel 6.6.161.1-1

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

dm: fix use-after-free when dmgetdevice() widens the open mode

There's an UAF bug in dmgetdevice(): when a table construction calls dmgetdevice() on the same device twice with widen access mode (e.g., read-only first then read-write), the second dmgetdevice() calls upgrademode(), which reopens the device in upgraded mode, making previously returned dmdev a stale pointer.

Fixing approaches: - Add per-mode views (dmdevref) from a per-device dmdevinternal to multiple tabledevices. - Keep reusing the dmdevref when the requested mode is included, i.e., a read-only reference can reuse the read-write opened device within a table. - Maintain a canonical blockdevice pointer in dmdevinternal for handling the DMTABLEDEPS ioctl.

Also tweak the way of mode sharing check in findref() to "(x & mask) == mask". The result stays the same to the previous upgrademode() guard "(x | mask) == x".

Pros: keep the relationship between dmdevinternal and tabledevice: one dmdevinternal per device, regardless the mode, so the output of DMMTABLEDEPS ioctl unchanged.

Cons: extra dmdevref allocation.

Note that now the tabledevice's count not necessarily mean the number tables referecing this <dev, mode> pair, since we're allowing multiple references within a table.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Event History

Dec 3, 2026
Advisory Published
via OSV·10:17 AM
Data Sourced
via OSV·10:17 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What device-mapper usage pattern is required to trigger the flaw?

A device-mapper table must call dm_get_device() for the same underlying device more than once while widening the open mode, such as requesting read-only access first and read-write access afterward.

2

What makes the earlier device reference unsafe?

The mode-widening request reopens the device in the upgraded mode. That action makes dm_dev pointers returned by the earlier request stale, creating a use-after-free condition.

3

Does the issue affect repeated requests that do not widen access?

The described vulnerable path is specifically a repeated request that widens access mode. The fix also allows a read-only reference to reuse an already read-write opened device within the same table.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203