{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52804","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-05-21T15:19:24.247Z","datePublished":"2024-05-21T15:31:15.720Z","dateUpdated":"2026-08-05T09:11:29.986Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T09:11:29.986Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/jfs: Add validity check for db_maxag and db_agpref\n\nBoth db_maxag and db_agpref are used as the index of the\ndb_agfree array, but there is currently no validity check for\ndb_maxag and db_agpref, which can lead to errors.\n\nThe following is related bug reported by Syzbot:\n\nUBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:639:20\nindex 7936 is out of range for type 'atomic_t[128]'\n\nAdd checking that the values of db_maxag and db_agpref are valid\nindexes for the db_agfree array."}],"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 - The bug is reached by mounting a crafted JFS block-device image (e.g. loop/USB) and then performing local filesystem operations; it is not reachable via remote packet parsing.\nAC:L - The attacker fully controls the on-disk bmap fields and can set db_agpref/db_maxag to out-of-range values that reliably trigger the OOB paths on subsequent allocations (e.g. symlink → dbAlloc → dbNextAG).\nPR:L - An unprivileged local user can supply a malicious JFS image and have it mounted via common low-privilege mount helpers (e.g. udisks), then trigger the bug with ordinary file-creating syscalls on that mount.\nUI:N - No separate victim action is required once the attacker can mount their own crafted image and exercise write paths such as symlink/create on it.\nS:U - Impact is confined to the local kernel/host authority (memory corruption / privilege escalation within the same system); it does not cross a VM, IOMMU, or other security boundary.\nC:H - Attacker-controlled indexes cause large out-of-bounds reads of kernel heap (db_active/db_agfree and related structures), which can disclose arbitrary adjacent memory.\nI:H - Out-of-range db_maxag drives OOB AG_LOCK/diAllocAG and related allocator updates past MAXAG-sized arrays, enabling heap corruption and control-flow/integrity compromise.\nA:H - The same OOB accesses reliably produce kernel UBSAN/KASAN failures and can oops/panic or otherwise crash the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_dmap.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"a0649e2dd4a3595b5595a29d0064d047c2fae2fb","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"ce15b0f1a431168f07b1cc6c9f71206a2db5c809","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"32bd8f1cbcf8b663e29dd1f908ba3a129541a11b","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"c6c8863fb3f57700ab583d875adda04caaf2278a","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"1f74d336990f37703a8eee77153463d65b67f70e","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"5013f8269887642cca784adc8db9b5f0b771533f","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"dca403bb035a565bb98ecc1dda5d30f676feda40","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"2323de34a3ae61a9f9b544c18583f71cea86721f","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"64933ab7b04881c6c18b21ff206c12278341c72e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_dmap.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"4.14.331","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.300","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.262","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.202","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.140","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.64","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.5.13","lessThanOrEqual":"6.5.*","status":"unaffected","versionType":"semver"},{"version":"6.6.3","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"4.14.331"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"4.19.300"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.262"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.202"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.140"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.5.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.7"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a0649e2dd4a3595b5595a29d0064d047c2fae2fb"},{"url":"https://git.kernel.org/stable/c/ce15b0f1a431168f07b1cc6c9f71206a2db5c809"},{"url":"https://git.kernel.org/stable/c/32bd8f1cbcf8b663e29dd1f908ba3a129541a11b"},{"url":"https://git.kernel.org/stable/c/c6c8863fb3f57700ab583d875adda04caaf2278a"},{"url":"https://git.kernel.org/stable/c/1f74d336990f37703a8eee77153463d65b67f70e"},{"url":"https://git.kernel.org/stable/c/5013f8269887642cca784adc8db9b5f0b771533f"},{"url":"https://git.kernel.org/stable/c/dca403bb035a565bb98ecc1dda5d30f676feda40"},{"url":"https://git.kernel.org/stable/c/2323de34a3ae61a9f9b544c18583f71cea86721f"},{"url":"https://git.kernel.org/stable/c/64933ab7b04881c6c18b21ff206c12278341c72e"}],"title":"fs/jfs: Add validity check for db_maxag and db_agpref","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T23:11:36.034Z"},"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/a0649e2dd4a3595b5595a29d0064d047c2fae2fb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ce15b0f1a431168f07b1cc6c9f71206a2db5c809","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/32bd8f1cbcf8b663e29dd1f908ba3a129541a11b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c6c8863fb3f57700ab583d875adda04caaf2278a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1f74d336990f37703a8eee77153463d65b67f70e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5013f8269887642cca784adc8db9b5f0b771533f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/dca403bb035a565bb98ecc1dda5d30f676feda40","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2323de34a3ae61a9f9b544c18583f71cea86721f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/64933ab7b04881c6c18b21ff206c12278341c72e","tags":["x_transferred"]}]},{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52804","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:36:50.346379Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-11T17:32:54.971Z"}}]}}