{"id":"AZL-117971","summary":"CVE-2026-143028 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix use-after-free when dm_get_device() widens the open mode\n\nThere's an UAF bug in dm_get_device(): when a table construction calls\ndm_get_device() on the same device twice with widen access mode (e.g.,\nread-only first then read-write), the second dm_get_device() calls\nupgrade_mode(), which reopens the device in upgraded mode, making\npreviously returned dm_dev* a stale pointer.\n\nFixing approaches:\n- Add per-mode views (dm_dev_ref) from a per-device dm_dev_internal to\n  multiple table_devices.\n- Keep reusing the dm_dev_ref when the requested mode is included, i.e.,\n  a read-only reference can reuse the read-write opened device within a\n  table.\n- Maintain a canonical block_device pointer in dm_dev_internal for\n  handling the DM_TABLE_DEPS ioctl.\n\nAlso tweak the way of mode sharing check in find_ref() to\n\"(x & mask) == mask\". The result stays the same to the previous\nupgrade_mode() guard \"(x | mask) == x\".\n\nPros: keep the relationship between dm_dev_internal and table_device:\none dm_dev_internal per device, regardless the mode, so the output of\nDMM_TABLE_DEPS ioctl unchanged.\n\nCons: extra dm_dev_ref allocation.\n\nNote that now the table_device's count not necessarily mean the number\ntables referecing this \u003cdev, mode\u003e pair, since we're allowing multiple\nreferences within a table.","modified":"2026-12-04T14:18:54.330120885Z","published":"2026-12-03T10:17:30Z","upstream":["CVE-2026-143028"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143028"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117971.json"}}],"schema_version":"1.9.2"}