{"id":"AZL-117133","summary":"CVE-2026-139438 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: use iomap_dirty_folio for block devices\n\nWith CONFIG_BUFFER_HEAD=n, block devices are written back through iomap,\nbut def_blk_aops uses filemap_dirty_folio, which only sets PG_dirty. It\ndoes not set the per-block dirty bits in the folio's iomap_folio_state,\nso iomap_writeback_folio() finds no dirty range, submits no I/O and\nclears PG_dirty, resulting in data loss.\n\nOther iomap users set .dirty_folio to iomap_dirty_folio, which marks the\nfolio's blocks dirty before calling filemap_dirty_folio().\n\nThis is only observable with block size \u003c folio size. With a single\nblock there is no iomap_folio_state to get out of sync and\niomap_writeback_folio() marks the whole folio dirty itself. For a\npage-aligned device, this may require using the BLKBSZSET ioctl to set\nthe block size, which requires CAP_SYS_ADMIN. A device whose size is not\npage aligned already gets a sub-page block size from\nset_init_blocksize(), so no ioctl and no privilege is needed.\n\nTo reproduce, on a device with a sub-page block size, write a known\npattern with O_DIRECT, mmap the same range, store to it, msync() and\nfsync(), then read it back with O_DIRECT. A reproducer is available at\n[1].\n\n[1] https://gist.github.com/tzussman/18ab05cba4b3fdc79cce0a69d1fd05b4","modified":"2026-12-01T14:17:41.424119613Z","published":"2026-11-30T14:19:14Z","upstream":["CVE-2026-139438"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139438"}],"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-117133.json"}}],"schema_version":"1.9.2"}