{"id":"AZL-114890","summary":"CVE-2026-99448 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nufs: use u64 for directory size in ufs_last_byte\n\nufs1_read_inode() and ufs2_read_inode() copy the untrusted 64-bit\non-disk size into inode-\u003ei_size.  ufs_last_byte() then truncates that\nvalue to an unsigned int before calculating the valid extent of a\ndirectory folio.\n\nA directory size of exactly 4 GiB is truncated to zero.  In\nufs_find_entry(), subtracting the requested record length from that zero\nforms an endpoint almost 4 GiB beyond the mapped folio.  A crafted UFS2\nimage produces:\n\n  BUG: KASAN: use-after-free in ufs_find_entry+0x583/0x6e0 [ufs]\n  Read of size 1\n  ...\n  ufs_find_entry\n  ufs_inode_by_name\n  ufs_lookup\n  __lookup_slow\n  path_lookupat\n\nThe KASAN classification reflects that the adjacent physical page was\nfree; the source-level operation is an out-of-folio read.  A controlled\nUFS1 test with CONFIG_UFS_FS_WRITE enabled also made ufs_find_entry()\nreturn a directory entry from an adjacent anonymous page.  unlink() then\npassed that pointer to ufs_delete_entry(), which cleared the adjacent\npage's 3\n2-bit d_ino.  This write result reproduced three out of three\ntimes.\n\nUFS normally requires a privileged mount path.  A relevant boundary is\na privileged automounter or image-processing service handling an\nattacker-supplied filesystem.  The write primitive additionally requires\nUFS1 to be mounted read-write with CONFIG_UFS_FS_WRITE enabled; the read\nis reachable with read-only UFS2.\n\nKeep the intermediate size arithmetic at 64 bits so non-final pages are\nbounded at PAGE_SIZE.  With this change, the same controlled tests reach\nthe real on-disk directory entry and produce no adjacent-page write or\nKASAN report.  A reproducer and full validation logs are available on\nrequest.\n\nThe vulnerable helper is present in v7.2-rc3, v7.1, v6.18.38, v6.12.95,\nv6.6.111, and upstream master at 1229e2e57a5c.  Runtime reproduction and\nfix validation were performed in an x86-64 QEMU guest running v7.2-rc3\nwith generic KASAN.","modified":"2026-11-20T14:17:19.129784162Z","published":"2026-11-19T15:17:58Z","upstream":["CVE-2026-99448"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99448"}],"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-114890.json"}}],"schema_version":"1.9.2"}