{"schema_version":"1.9.0","id":"CVE-2022-49147","published":"2025-02-26T01:55:15.373Z","modified":"2026-08-12T03:51:13.242126461Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"summary":"block: Fix the maximum minor value is blk_alloc_ext_minor()","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae"},{"fixed":"5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb"},{"fixed":"0f8cf8f5ccbad25ed6828875b222dbab29d5c272"},{"fixed":"fbe2cc4525480ddd20c866bb5c0578071e01451a"},{"fixed":"d1868328dec5ae2cf210111025fcbc71f78dd5ca"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49147.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.16.19"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.17.0"},{"fixed":"5.17.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49147.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0f8cf8f5ccbad25ed6828875b222dbab29d5c272"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1868328dec5ae2cf210111025fcbc71f78dd5ca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fbe2cc4525480ddd20c866bb5c0578071e01451a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49147.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49147"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49147.json"}}