{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49147","id":"CVE-2022-49147","title":"block: Fix the maximum minor value is blk_alloc_ext_minor()","description":"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)","descriptionLong":"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.","published":"2025-02-26T01:55:15.373Z","updated":"2026-10-28T02:30:22.238422523Z","reserved":"2025-02-26T01:49:39.271Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","lessThan":"5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb","status":"affected","versionType":"git"},{"version":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","lessThan":"0f8cf8f5ccbad25ed6828875b222dbab29d5c272","status":"affected","versionType":"git"},{"version":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","lessThan":"fbe2cc4525480ddd20c866bb5c0578071e01451a","status":"affected","versionType":"git"},{"version":"22ae8ce8b89241c94ac00c237752c0ffa37ba5ae","lessThan":"d1868328dec5ae2cf210111025fcbc71f78dd5ca","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"5.15.33","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.19","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17.2","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/5b9ac3727e4abb11c9cfbe9c0781fc05dfdd7cfb","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0f8cf8f5ccbad25ed6828875b222dbab29d5c272","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fbe2cc4525480ddd20c866bb5c0578071e01451a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d1868328dec5ae2cf210111025fcbc71f78dd5ca","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49147.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49147","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00261,"epssPercentile":0.18073,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49147","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49147","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49147","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49147","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}