{"id":"CVE-2022-49147","aliases":["CVE-2022-49147"],"related":[],"kind":"vulnerability","state":"published","title":"block: Fix the maximum minor value is blk_alloc_ext_minor()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: block: Fix el valor menor máximo es blk_alloc_ext_minor() ida_alloc_range(..., min, max, ...) devuelve valores de min a max, ambos incluidos. Por lo tanto, NR_EXT_DEVT es un idx válido devuelto por blk_alloc_ext_minor(). Esto es un problema porque en device_add_disk(), este valor se usa en: ddev-&gt;devt = MKDEV(disk-&gt;major, disk-&gt;first_minor); y NR_EXT_DEVT es '(1 &lt;&lt; MINORBITS)'. Por lo tanto, si 'disk-&gt;first_minor' fuera NR_EXT_DEVT, se desbordaría.","source":"nvd"}],"published":"2025-02-26T01:55:15.373Z","modified":"2026-06-17T05:17:12.827Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","fixed":"5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb","status":"affected"},{"type":"git","introduced":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","fixed":"0f8cf8f5ccbad25ed6828875b222dbab29d5c272","status":"affected"},{"type":"git","introduced":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","fixed":"fbe2cc4525480ddd20c866bb5c0578071e01451a","status":"affected"},{"type":"git","introduced":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","fixed":"d1868328dec5ae2cf210111025fcbc71f78dd5ca","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.11","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f8cf8f5ccbad25ed6828875b222dbab29d5c272","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbe2cc4525480ddd20c866bb5c0578071e01451a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1868328dec5ae2cf210111025fcbc71f78dd5ca","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49147","url":"https://www.cve.org/CVERecord?id=CVE-2022-49147","licence":"CVE Terms of Use","modified":"2026-05-11T18:54:02.788Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49147","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49147","licence":"Public domain","modified":"2026-06-17T05:17:12.827Z"}],"updatedAt":"2026-11-25T22:58:20.220Z","epss":{"score":0.00261,"percentile":0.19135,"date":"2026-12-01T12:00:22.000Z"}}