{"id":"AZL-117283","summary":"CVE-2026-139679 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: reject a per-device size smaller than one chunk\n\nBoth raid5_run() and raid5_resize() align the per-device size down to a\nwhole multiple of the chunk size:\n\n\tmddev-\u003edev_sectors &= ~(chunk_sectors - 1);\n\nNeither checks the result, so a size smaller than one chunk silently\nbecomes zero.\n\nIn raid5_run() that is harmless: the array size is derived from the same\nzero, so the disk just ends up with no capacity.\n\nIn raid5_resize() it leaves the array inconsistent -- mddev-\u003edev_sectors\nbecomes zero, while mddev-\u003earray_sectors and the gendisk capacity keep the\nprevious. A later raid4/raid5 -\u003e raid0 takeover copies the zero into every\nrdev-\u003esectors (raid0_takeover_raid45()), so create_strip_zones() builds a\nstrip zone table whose zone_end is zero. Any read then passes\nbio_check_eod() against the stale capacity and hits the BUG() in\nfind_zone():\n\n kernel BUG at drivers/md/raid0.c:318!\n Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\n Call Trace:\n   raid0_make_request\n   md_handle_request\n   submit_bio_noacct_nocheck\n   block_read_full_folio\n   read_part_sector\n   bdev_disk_changed\n   bdev_open\n\nReject a size smaller than one chunk in both functions, so that a running\nraid4/raid5 array always has mddev-\u003edev_sectors \u003e= one chunk.\n\nThe check is done where the value takes effect, not where it is assigned.\nmddev-\u003edev_sectors is written from several places, and none of them can\ntell whether the value is usable: the chunk size may still change later.\nraid5_run() and raid5_resize() are where every input is final, so one check\nin each covers them all.","modified":"2026-12-01T14:17:41.682725122Z","published":"2026-11-30T14:19:55Z","upstream":["CVE-2026-139679"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139679"}],"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-117283.json"}}],"schema_version":"1.9.2"}