{"api_version":"1","generated_at":"2026-07-23T11:15:52+00:00","cve":"CVE-2023-53503","urls":{"html":"https://cve.report/CVE-2023-53503","api":"https://cve.report/api/cve/CVE-2023-53503.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-53503","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-53503"},"summary":{"title":"ext4: allow ext4_get_group_info() to fail","description":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: allow ext4_get_group_info() to fail\n\nPreviously, ext4_get_group_info() would treat an invalid group number\nas BUG(), since in theory it should never happen.  However, if a\nmalicious attaker (or fuzzer) modifies the superblock via the block\ndevice while it is the file system is mounted, it is possible for\ns_first_data_block to get set to a very large number.  In that case,\nwhen calculating the block group of some block number (such as the\nstarting block of a preallocation region), could result in an\nunderflow and very large block group number.  Then the BUG_ON check in\next4_get_group_info() would fire, resutling in a denial of service\nattack that can be triggered by root or someone with write access to\nthe block device.\n\nFor a quality of implementation perspective, it's best that even if\nthe system administrator does something that they shouldn't, that it\nwill not trigger a BUG.  So instead of BUG'ing, ext4_get_group_info()\nwill call ext4_error and return NULL.  We also add fallback code in\nall of the callers of ext4_get_group_info() that it might NULL.\n\nAlso, since ext4_get_group_info() was already borderline to be an\ninline function, un-inline it.  The results in a next reduction of the\ncompiled text size of ext4 by roughly 2k.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-10-01 12:15:53","updated_at":"2026-04-06 14:45:08"},"problem_types":["CWE-476"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/620a3c28221bb219b81bc0bffd065cc187494302","name":"https://git.kernel.org/stable/c/620a3c28221bb219b81bc0bffd065cc187494302","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b4319e457d6e3fb33e443efeaf4634fc36e8a9ed","name":"https://git.kernel.org/stable/c/b4319e457d6e3fb33e443efeaf4634fc36e8a9ed","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5354b2af34064a4579be8bc0e2f15a7b70f14b5f","name":"https://git.kernel.org/stable/c/5354b2af34064a4579be8bc0e2f15a7b70f14b5f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/31668cebf45adfb6283e465e641c4f5a21b07afa","name":"https://git.kernel.org/stable/c/31668cebf45adfb6283e465e641c4f5a21b07afa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/100c0ad6c04597fefeaaba2bb1827cc015d95067","name":"https://git.kernel.org/stable/c/100c0ad6c04597fefeaaba2bb1827cc015d95067","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-53503","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53503","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2f2e09eb15849562aede80ed007658e4504ded26 100c0ad6c04597fefeaaba2bb1827cc015d95067 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2f2e09eb15849562aede80ed007658e4504ded26 620a3c28221bb219b81bc0bffd065cc187494302 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2f2e09eb15849562aede80ed007658e4504ded26 b4319e457d6e3fb33e443efeaf4634fc36e8a9ed git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2f2e09eb15849562aede80ed007658e4504ded26 31668cebf45adfb6283e465e641c4f5a21b07afa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2f2e09eb15849562aede80ed007658e4504ded26 5354b2af34064a4579be8bc0e2f15a7b70f14b5f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.181 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.113 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.30 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.3.4 6.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.4 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"53503","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ext4/balloc.c","fs/ext4/ext4.h","fs/ext4/ialloc.c","fs/ext4/mballoc.c","fs/ext4/super.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"100c0ad6c04597fefeaaba2bb1827cc015d95067","status":"affected","version":"2f2e09eb15849562aede80ed007658e4504ded26","versionType":"git"},{"lessThan":"620a3c28221bb219b81bc0bffd065cc187494302","status":"affected","version":"2f2e09eb15849562aede80ed007658e4504ded26","versionType":"git"},{"lessThan":"b4319e457d6e3fb33e443efeaf4634fc36e8a9ed","status":"affected","version":"2f2e09eb15849562aede80ed007658e4504ded26","versionType":"git"},{"lessThan":"31668cebf45adfb6283e465e641c4f5a21b07afa","status":"affected","version":"2f2e09eb15849562aede80ed007658e4504ded26","versionType":"git"},{"lessThan":"5354b2af34064a4579be8bc0e2f15a7b70f14b5f","status":"affected","version":"2f2e09eb15849562aede80ed007658e4504ded26","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ext4/balloc.c","fs/ext4/ext4.h","fs/ext4/ialloc.c","fs/ext4/mballoc.c","fs/ext4/super.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.11"},{"lessThan":"3.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.181","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.113","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.30","versionType":"semver"},{"lessThanOrEqual":"6.3.*","status":"unaffected","version":"6.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.4","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.181","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.113","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.30","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.3.4","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.4","versionStartIncluding":"3.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: allow ext4_get_group_info() to fail\n\nPreviously, ext4_get_group_info() would treat an invalid group number\nas BUG(), since in theory it should never happen.  However, if a\nmalicious attaker (or fuzzer) modifies the superblock via the block\ndevice while it is the file system is mounted, it is possible for\ns_first_data_block to get set to a very large number.  In that case,\nwhen calculating the block group of some block number (such as the\nstarting block of a preallocation region), could result in an\nunderflow and very large block group number.  Then the BUG_ON check in\next4_get_group_info() would fire, resutling in a denial of service\nattack that can be triggered by root or someone with write access to\nthe block device.\n\nFor a quality of implementation perspective, it's best that even if\nthe system administrator does something that they shouldn't, that it\nwill not trigger a BUG.  So instead of BUG'ing, ext4_get_group_info()\nwill call ext4_error and return NULL.  We also add fallback code in\nall of the callers of ext4_get_group_info() that it might NULL.\n\nAlso, since ext4_get_group_info() was already borderline to be an\ninline function, un-inline it.  The results in a next reduction of the\ncompiled text size of ext4 by roughly 2k."}],"providerMetadata":{"dateUpdated":"2026-01-05T10:21:00.886Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/100c0ad6c04597fefeaaba2bb1827cc015d95067"},{"url":"https://git.kernel.org/stable/c/620a3c28221bb219b81bc0bffd065cc187494302"},{"url":"https://git.kernel.org/stable/c/b4319e457d6e3fb33e443efeaf4634fc36e8a9ed"},{"url":"https://git.kernel.org/stable/c/31668cebf45adfb6283e465e641c4f5a21b07afa"},{"url":"https://git.kernel.org/stable/c/5354b2af34064a4579be8bc0e2f15a7b70f14b5f"}],"title":"ext4: allow ext4_get_group_info() to fail","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2023-53503","datePublished":"2025-10-01T11:45:54.052Z","dateReserved":"2025-10-01T11:39:39.404Z","dateUpdated":"2026-01-05T10:21:00.886Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-10-01 12:15:53","lastModifiedDate":"2026-04-06 14:45:08","problem_types":["CWE-476"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"5.10.181","matchCriteriaId":"4B7B3683-E9CA-4312-979C-328358185649"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.113","matchCriteriaId":"F3D5E1B5-AB9D-4ECC-8F11-F3E1BF761E27"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.30","matchCriteriaId":"E9430E62-03EA-42E6-9E5E-BD1D5124D107"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.3.4","matchCriteriaId":"26C54BF0-3EED-46D4-92A7-5F07F658B49B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.4:rc1:*:*:*:*:*:*","matchCriteriaId":"38BC6744-7D25-4C02-9966-B224CD071D30"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2023","CveId":"53503","Ordinal":"1","Title":"ext4: allow ext4_get_group_info() to fail","CVE":"CVE-2023-53503","Year":"2023"},"notes":[{"CveYear":"2023","CveId":"53503","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: allow ext4_get_group_info() to fail\n\nPreviously, ext4_get_group_info() would treat an invalid group number\nas BUG(), since in theory it should never happen.  However, if a\nmalicious attaker (or fuzzer) modifies the superblock via the block\ndevice while it is the file system is mounted, it is possible for\ns_first_data_block to get set to a very large number.  In that case,\nwhen calculating the block group of some block number (such as the\nstarting block of a preallocation region), could result in an\nunderflow and very large block group number.  Then the BUG_ON check in\next4_get_group_info() would fire, resutling in a denial of service\nattack that can be triggered by root or someone with write access to\nthe block device.\n\nFor a quality of implementation perspective, it's best that even if\nthe system administrator does something that they shouldn't, that it\nwill not trigger a BUG.  So instead of BUG'ing, ext4_get_group_info()\nwill call ext4_error and return NULL.  We also add fallback code in\nall of the callers of ext4_get_group_info() that it might NULL.\n\nAlso, since ext4_get_group_info() was already borderline to be an\ninline function, un-inline it.  The results in a next reduction of the\ncompiled text size of ext4 by roughly 2k.","Type":"Description","Title":"ext4: allow ext4_get_group_info() to fail"}]}}}