{"id":"CVE-2022-49147","published":"2025-02-26T01:55:15Z","modified":"2026-05-11T18:54:02Z","title":"block: Fix the maximum minor value is blk_alloc_ext_minor()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: Fix the maximum minor value is blk_alloc_ext_minor()\n\nida_alloc_range(..., min, max, ...) returns values from min to max,\ninclusive.\n\nSo, NR_EXT_DEVT is a valid idx returned by blk_alloc_ext_minor().\n\nThis is an issue because in device_add_disk(), this value is used in:\n   ddev->devt = MKDEV(disk->major, disk->first_minor);\nand NR_EXT_DEVT is '(1 << MINORBITS)'.\n\nSo, should 'disk->first_minor' be NR_EXT_DEVT, it would overflow.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00261,"percentile":0.17732,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb","tags":[]},{"url":"https://git.kernel.org/stable/c/0f8cf8f5ccbad25ed6828875b222dbab29d5c272","tags":[]},{"url":"https://git.kernel.org/stable/c/fbe2cc4525480ddd20c866bb5c0578071e01451a","tags":[]},{"url":"https://git.kernel.org/stable/c/d1868328dec5ae2cf210111025fcbc71f78dd5ca","tags":[]}],"priority":{"score":3.5,"factors":[{"name":"EPSS percentile","points":3.55}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 22ae8ce8b89241c94ac00c237752c0ffa37ba5ae, < 5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb",">= 22ae8ce8b89241c94ac00c237752c0ffa37ba5ae, < 0f8cf8f5ccbad25ed6828875b222dbab29d5c272",">= 22ae8ce8b89241c94ac00c237752c0ffa37ba5ae, < fbe2cc4525480ddd20c866bb5c0578071e01451a",">= 22ae8ce8b89241c94ac00c237752c0ffa37ba5ae, < d1868328dec5ae2cf210111025fcbc71f78dd5ca"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"euvd":{"id":"EUVD-2022-55078","exploited":false,"provenance":"source"}}