{"id":"CVE-2024-43858","state":"PUBLISHED","title":"jfs: Fix array-index-out-of-bounds in diFree","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: Fix array-index-out-of-bounds in diFree","publishedAt":"2024-08-17T09:24:27.976Z","updatedAt":"2026-10-15T00:48:28.619Z","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":"55b732c8b09b41148eaab2fa8e31b0af47671e00","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9b3a4345957f5372041bc4f59de322f62653e862","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"538a27c8048f081a5ddd286f886eb986fbbc7f80","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"63f7fdf733add82f126ea00e2e48f6eba15ac4b9","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8d8f9a477de0d7962342eedf2a599215b7c63d28","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ff14eadc278663cac69d57d3ca7fb2f394e1f8a7","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"6aa6892a90a5a7fabffe5692ab9f06a7a46c6e42","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f73f969b2eb39ad8056f6c7f3a295fa2f85e313a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_imap.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.320","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.282","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.224","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.165","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.103","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","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_imap.c"]}],"references":["https://git.kernel.org/stable/c/55b732c8b09b41148eaab2fa8e31b0af47671e00","https://git.kernel.org/stable/c/9b3a4345957f5372041bc4f59de322f62653e862","https://git.kernel.org/stable/c/538a27c8048f081a5ddd286f886eb986fbbc7f80","https://git.kernel.org/stable/c/63f7fdf733add82f126ea00e2e48f6eba15ac4b9","https://git.kernel.org/stable/c/8d8f9a477de0d7962342eedf2a599215b7c63d28","https://git.kernel.org/stable/c/ff14eadc278663cac69d57d3ca7fb2f394e1f8a7","https://git.kernel.org/stable/c/6aa6892a90a5a7fabffe5692ab9f06a7a46c6e42","https://git.kernel.org/stable/c/f73f969b2eb39ad8056f6c7f3a295fa2f85e313a","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","https://cert-portal.siemens.com/productcert/html/ssa-265688.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43858.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-43858","state":"PUBLISHED","datePublished":"2024-08-17T09:24:27.976Z","dateUpdated":"2026-10-15T00:48:28.619Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-17T09:11:59.279Z"},"containers":{"cna":{"title":"jfs: Fix array-index-out-of-bounds in diFree","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: Fix array-index-out-of-bounds in diFree"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"55b732c8b09b41148eaab2fa8e31b0af47671e00","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9b3a4345957f5372041bc4f59de322f62653e862","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"538a27c8048f081a5ddd286f886eb986fbbc7f80","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"63f7fdf733add82f126ea00e2e48f6eba15ac4b9","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8d8f9a477de0d7962342eedf2a599215b7c63d28","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ff14eadc278663cac69d57d3ca7fb2f394e1f8a7","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"6aa6892a90a5a7fabffe5692ab9f06a7a46c6e42","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f73f969b2eb39ad8056f6c7f3a295fa2f85e313a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/jfs_imap.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.320","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.282","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.224","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.165","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.103","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","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_imap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/55b732c8b09b41148eaab2fa8e31b0af47671e00"},{"url":"https://git.kernel.org/stable/c/9b3a4345957f5372041bc4f59de322f62653e862"},{"url":"https://git.kernel.org/stable/c/538a27c8048f081a5ddd286f886eb986fbbc7f80"},{"url":"https://git.kernel.org/stable/c/63f7fdf733add82f126ea00e2e48f6eba15ac4b9"},{"url":"https://git.kernel.org/stable/c/8d8f9a477de0d7962342eedf2a599215b7c63d28"},{"url":"https://git.kernel.org/stable/c/ff14eadc278663cac69d57d3ca7fb2f394e1f8a7"},{"url":"https://git.kernel.org/stable/c/6aa6892a90a5a7fabffe5692ab9f06a7a46c6e42"},{"url":"https://git.kernel.org/stable/c/f73f969b2eb39ad8056f6c7f3a295fa2f85e313a"}],"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 vulnerability is reached by mounting a crafted JFS image and then unlinking a file, all through local syscalls (mount/unlink) on a block or loop device. No network protocol processing is involved.\nAC:L - The out-of-bounds index is taken verbatim from the on-disk `iagp->agstart` field, so the attacker picks the exact OOB offset deterministically in the image; there is no race and no reliance on conditions outside attacker control.\nPR:L - A low-privileged local user can supply the malicious JFS image on common desktop/kiosk configurations where udisks2/polkit permits an active session user to mount removable or loop-backed media, and the subsequent unlink that triggers `diFree` requires only ordinary write access to a directory on that filesystem.\nUI:N - Once the image is attached, no victim action is needed — the attacker's own unlink drives `jfs_evict_inode` into `diFree`, and automounters attach the media without any human step.\nS:U - The corruption stays within kernel memory under the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The unchecked index produces out-of-bounds reads of `im_agctl[agno].numfree`/`numinos` and of the `im_aglock[agno]` mutex at an attacker-chosen offset, and the resulting heap corruption is a general primitive that can be leveraged for kernel memory disclosure.\nI:H - `imap->im_agctl[agno].inofree = iagno` writes an attacker-influenced 32-bit value at an attacker-chosen offset far outside the `struct inomap` allocation, and `mutex_lock()` on `im_aglock[agno]` writes a kernel pointer OOB — a controlled slab-corruption write primitive suitable for control-flow hijacking.\nA:H - Out-of-bounds writes into adjacent slab objects and locking a bogus mutex reliably produce oopses, hangs, or panics, and an OOB-read `numinos` of zero yields an immediate divide-error in the `(numfree * 100) / numinos` computation."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:36:50.250Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"4.19.320"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.282"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.165"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.103"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.10.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-43858","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:07:01.781226Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:33:20.278Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:05:59.215Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1.1","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:48:28.619Z"},"x_adpType":"supplier"}]}}}