{"id":"CVE-2023-52601","state":"PUBLISHED","title":"jfs: fix array-index-out-of-bounds in dbAdjTree","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: fix array-index-out-of-bounds in dbAdjTree\n\nCurrently there is a bound check missing in the dbAdjTree while\naccessing the dmt_stree. To add the required check added the bool is_ctl\nwhich is required to determine the size as suggest in the following\ncommit.\nhttps://lore.kernel.org/linux-kernel-mentees/f9475918-2186-49b8-b801-6f0f9e75f4fa@oracle.com/","publishedAt":"2024-03-06T06:45:28.715Z","updatedAt":"2026-08-05T09:10:35.710Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3d3898b4d72c677d47fe3cb554449f2df5c12555","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3f8217c323fd6ecd6829a0c3ae7ac3f14eac368e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2037cb9d95f1741885f7daf50e8a028c4ade5317","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8393c80cce45f40c1256d72e21ad351b3650c57e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"70780914cb57e2ba711e0ac1b677aaaa75103603","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2e16a1389b5a7983b45cb2aa20b0e3f0ee364d6c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fc67a2e18f4c4e3f07e9f9ae463da24530470e73","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"74ecdda68242b174920fe7c6133a856fb7d8559b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_dmap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"4.19.307","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.269","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.210","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.149","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.77","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.16","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.4","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_dmap.c"]}],"references":["https://git.kernel.org/stable/c/3d3898b4d72c677d47fe3cb554449f2df5c12555","https://git.kernel.org/stable/c/3f8217c323fd6ecd6829a0c3ae7ac3f14eac368e","https://git.kernel.org/stable/c/2037cb9d95f1741885f7daf50e8a028c4ade5317","https://git.kernel.org/stable/c/8393c80cce45f40c1256d72e21ad351b3650c57e","https://git.kernel.org/stable/c/70780914cb57e2ba711e0ac1b677aaaa75103603","https://git.kernel.org/stable/c/2e16a1389b5a7983b45cb2aa20b0e3f0ee364d6c","https://git.kernel.org/stable/c/fc67a2e18f4c4e3f07e9f9ae463da24530470e73","https://git.kernel.org/stable/c/74ecdda68242b174920fe7c6133a856fb7d8559b","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"],"weaknesses":["CWE-129"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52601.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52601","state":"PUBLISHED","datePublished":"2024-03-06T06:45:28.715Z","dateUpdated":"2026-08-05T09:10:35.710Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-03-02T21:55:42.573Z"},"containers":{"cna":{"title":"jfs: fix array-index-out-of-bounds in dbAdjTree","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: fix array-index-out-of-bounds in dbAdjTree\n\nCurrently there is a bound check missing in the dbAdjTree while\naccessing the dmt_stree. To add the required check added the bool is_ctl\nwhich is required to determine the size as suggest in the following\ncommit.\nhttps://lore.kernel.org/linux-kernel-mentees/f9475918-2186-49b8-b801-6f0f9e75f4fa@oracle.com/"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3d3898b4d72c677d47fe3cb554449f2df5c12555","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3f8217c323fd6ecd6829a0c3ae7ac3f14eac368e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2037cb9d95f1741885f7daf50e8a028c4ade5317","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8393c80cce45f40c1256d72e21ad351b3650c57e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"70780914cb57e2ba711e0ac1b677aaaa75103603","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2e16a1389b5a7983b45cb2aa20b0e3f0ee364d6c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fc67a2e18f4c4e3f07e9f9ae463da24530470e73","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"74ecdda68242b174920fe7c6133a856fb7d8559b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_dmap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"4.19.307","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.269","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.210","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.149","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.77","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.16","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.4","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_dmap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3d3898b4d72c677d47fe3cb554449f2df5c12555"},{"url":"https://git.kernel.org/stable/c/3f8217c323fd6ecd6829a0c3ae7ac3f14eac368e"},{"url":"https://git.kernel.org/stable/c/2037cb9d95f1741885f7daf50e8a028c4ade5317"},{"url":"https://git.kernel.org/stable/c/8393c80cce45f40c1256d72e21ad351b3650c57e"},{"url":"https://git.kernel.org/stable/c/70780914cb57e2ba711e0ac1b677aaaa75103603"},{"url":"https://git.kernel.org/stable/c/2e16a1389b5a7983b45cb2aa20b0e3f0ee364d6c"},{"url":"https://git.kernel.org/stable/c/fc67a2e18f4c4e3f07e9f9ae463da24530470e73"},{"url":"https://git.kernel.org/stable/c/74ecdda68242b174920fe7c6133a856fb7d8559b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires mounting and operating on a crafted JFS image via local syscalls; JFS is a block filesystem (FS_REQUIRES_DEV, no FS_USERNS_MOUNT) and is not reachable from network packet processing.\nAC:L - A malicious image with corrupted dmap tree metadata (e.g. leafidx) reliably drives dbAdjTree past the real TREESIZE bound during ordinary free/alloc paths; success does not depend on races or uncontrolled system state.\nPR:L - After the crafted filesystem is mounted, an unprivileged local user with access to it can trigger the vulnerable free path through normal file operations (unlink/truncate/write); scoring PR:H would understate this reachable local-user scenario.\nUI:N - Exploitation is completed by the attacker's own filesystem operations on the mounted image; no additional interactive victim action is required at trigger time.\nS:U - Impact is confined to the host kernel's discretionary authority (local privilege escalation / kernel memory corruption); it does not cross a VM, IOMMU, or other security boundary.\nC:H - The bug performs an out-of-bounds read of dmt_stree before writing, and kernel OOB memory corruption of this form can be leveraged for arbitrary information disclosure.\nI:H - dbAdjTree performs an out-of-bounds write into adjacent kernel memory within the dmap metapage, which is exploitable memory corruption capable of control-flow hijacking or arbitrary write primitives.\nA:H - The OOB access can crash the kernel (UBSAN/KASAN reports and panic_on_warn in reproducers; related dbAdjTree reports include slab OOB/UAF), causing full availability loss."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:10:35.710Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"4.19.307"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.269"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.210"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.149"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.77"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.7.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"linux","product":"linux_kernel","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f4","status":"affected","lessThan":"3d3898b4d72c","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"3f8217c323fd","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"2037cb9d95f1","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"8393c80cce45","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"70780914cb57","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"2e16a1389b5a","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"fc67a2e18f4c","versionType":"git"},{"version":"1da177e4c3f4","status":"affected","lessThan":"74ecdda68242","versionType":"git"}],"cpes":["cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"affected","versions":[{"version":"4.19.307","status":"unaffected","lessThanOrEqual":"4.19.0","versionType":"semver"},{"version":"5.4.269","status":"unaffected","lessThanOrEqual":"5.4.0","versionType":"semver"},{"version":"5.10.210","status":"unaffected","lessThanOrEqual":"5.10.0","versionType":"semver"},{"version":"5.15.149","status":"unaffected","lessThanOrEqual":"5.15.0","versionType":"semver"},{"version":"6.1.77","status":"unaffected","lessThanOrEqual":"6.1.0","versionType":"semver"},{"version":"6.6.16","status":"unaffected","lessThanOrEqual":"6.6.0","versionType":"semver"},{"version":"6.7.4","status":"unaffected","lessThanOrEqual":"6.7.0","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThan":"*","versionType":"semver"}],"cpes":["cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-11-12T18:14:12.585306Z","id":"CVE-2023-52601","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-129","type":"CWE","lang":"en","description":"CWE-129 Improper Validation of Array Index"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-12T18:45:39.451Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/3d3898b4d72c677d47fe3cb554449f2df5c12555","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/3f8217c323fd6ecd6829a0c3ae7ac3f14eac368e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2037cb9d95f1741885f7daf50e8a028c4ade5317","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8393c80cce45f40c1256d72e21ad351b3650c57e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/70780914cb57e2ba711e0ac1b677aaaa75103603","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2e16a1389b5a7983b45cb2aa20b0e3f0ee364d6c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/fc67a2e18f4c4e3f07e9f9ae463da24530470e73","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/74ecdda68242b174920fe7c6133a856fb7d8559b","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:03:21.250Z"}}]}}}