{"id":"CVE-2024-41017","state":"PUBLISHED","title":"jfs: don't walk off the end of ealist","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: don't walk off the end of ealist\n\nAdd a check before visiting the members of ea to\nmake sure each ea stays within the ealist.","publishedAt":"2024-07-29T06:37:03.390Z","updatedAt":"2026-08-05T11:34:43.174Z","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":"7f91bd0f2941fa36449ce1a15faaa64f840d9746","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fc16776a82e8df97b6c4f9a10ba95aa44cef7ba5","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"6386f1b6a10e5d1ddd03db4ff6dfc55d488852ce","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7e21574195a45fc193555fa40e99fed16565ff7e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"4e034f7e563ab723b93a59980e4a1bb33198ece8","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"17440dbc66ab98b410514b04987f61deedb86751","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f4435f476b9bf059cd9e26a69f5b29c768d00375","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"dbde7bc91093fa9c2410e418b236b70fde044b73","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d0fa70aca54c8643248e89061da23752506ec0d4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/xattr.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.319","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.281","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.223","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.164","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.102","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.43","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.12","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10.2","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/xattr.c"]}],"references":["https://git.kernel.org/stable/c/7f91bd0f2941fa36449ce1a15faaa64f840d9746","https://git.kernel.org/stable/c/fc16776a82e8df97b6c4f9a10ba95aa44cef7ba5","https://git.kernel.org/stable/c/6386f1b6a10e5d1ddd03db4ff6dfc55d488852ce","https://git.kernel.org/stable/c/7e21574195a45fc193555fa40e99fed16565ff7e","https://git.kernel.org/stable/c/4e034f7e563ab723b93a59980e4a1bb33198ece8","https://git.kernel.org/stable/c/17440dbc66ab98b410514b04987f61deedb86751","https://git.kernel.org/stable/c/f4435f476b9bf059cd9e26a69f5b29c768d00375","https://git.kernel.org/stable/c/dbde7bc91093fa9c2410e418b236b70fde044b73","https://git.kernel.org/stable/c/d0fa70aca54c8643248e89061da23752506ec0d4","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41017.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-41017","state":"PUBLISHED","datePublished":"2024-07-29T06:37:03.390Z","dateUpdated":"2026-08-05T11:34:43.174Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.612Z"},"containers":{"cna":{"title":"jfs: don't walk off the end of ealist","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: don't walk off the end of ealist\n\nAdd a check before visiting the members of ea to\nmake sure each ea stays within the ealist."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7f91bd0f2941fa36449ce1a15faaa64f840d9746","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fc16776a82e8df97b6c4f9a10ba95aa44cef7ba5","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"6386f1b6a10e5d1ddd03db4ff6dfc55d488852ce","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7e21574195a45fc193555fa40e99fed16565ff7e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"4e034f7e563ab723b93a59980e4a1bb33198ece8","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"17440dbc66ab98b410514b04987f61deedb86751","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f4435f476b9bf059cd9e26a69f5b29c768d00375","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"dbde7bc91093fa9c2410e418b236b70fde044b73","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d0fa70aca54c8643248e89061da23752506ec0d4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/xattr.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.319","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.281","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.223","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.164","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.102","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.43","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.12","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10.2","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/xattr.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7f91bd0f2941fa36449ce1a15faaa64f840d9746"},{"url":"https://git.kernel.org/stable/c/fc16776a82e8df97b6c4f9a10ba95aa44cef7ba5"},{"url":"https://git.kernel.org/stable/c/6386f1b6a10e5d1ddd03db4ff6dfc55d488852ce"},{"url":"https://git.kernel.org/stable/c/7e21574195a45fc193555fa40e99fed16565ff7e"},{"url":"https://git.kernel.org/stable/c/4e034f7e563ab723b93a59980e4a1bb33198ece8"},{"url":"https://git.kernel.org/stable/c/17440dbc66ab98b410514b04987f61deedb86751"},{"url":"https://git.kernel.org/stable/c/f4435f476b9bf059cd9e26a69f5b29c768d00375"},{"url":"https://git.kernel.org/stable/c/dbde7bc91093fa9c2410e418b236b70fde044b73"},{"url":"https://git.kernel.org/stable/c/d0fa70aca54c8643248e89061da23752506ec0d4"}],"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 a locally-mounted crafted JFS image and is triggered through the getxattr()/listxattr() syscalls (or implicitly via jfs_get_acl() during permission checks) on the attacker's own file. There is no network-facing path into fs/jfs.\nAC:L - The attacker fully authors the on-disk EA list, so the out-of-bounds offset and length are deterministic and reliably reproducible with no dependence on uncontrolled state. The double-fetch write variant in jfs_listxattr() is likewise attacker-paced, since they control both the heap churn adjacent to the inline-EA slab object and the rate of syscalls.\nPR:L - On desktop, kiosk and workstation deployments removable media is mounted for the logged-in unprivileged user by udisks2/autofs, after which any unprivileged local user can trigger the overread on the crafted file. No CAP_SYS_ADMIN is needed for the triggering getxattr()/listxattr() calls themselves.\nUI:N - Once the filesystem is present, the attacker triggers the bug entirely on their own by calling getxattr()/listxattr() on their crafted file — even an `ls -l` style permission check reaches it via jfs_get_acl(). No victim action is required at exploitation time.\nS:U - The out-of-bounds access and its consequences are confined to the kernel's own memory and the same security authority. No hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - An attacker-chosen valuelen of up to 65535 makes __jfs_getxattr() memcpy up to 64 KB from beyond the EA buffer — frequently the 128-byte i_inline_ea field inside a jfs_inode_info slab object — and that adjacent kernel heap is returned directly to userspace. This is a large, unbounded infoleak that can disclose kernel pointers, keys, and other tasks' data.\nI:H - jfs_listxattr() re-derives namelen, the os2-prefix decision, and NEXT_EA() from out-of-bounds memory in both its sizing pass and its copy pass, so a concurrent change to those bytes lets the copy pass overflow the kvmalloc'd klist buffer — a kernel heap out-of-bounds write. Additionally, out-of-bounds heap bytes are parsed as POSIX ACL entries by jfs_get_acl(), corrupting the access rules applied to the inode.\nA:H - Reading up to 64 KB past a 128-byte inline buffer or a metapage routinely walks into unmapped pages, producing a general protection fault or oops, and KASAN/hardened configurations panic on the slab overread. The heap overflow write in jfs_listxattr() likewise corrupts allocator state and crashes the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:34:43.174Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"4.19.319"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.281"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.223"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.164"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.43"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.9.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.10.2"},{"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":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/7f91bd0f2941fa36449ce1a15faaa64f840d9746","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/fc16776a82e8df97b6c4f9a10ba95aa44cef7ba5","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6386f1b6a10e5d1ddd03db4ff6dfc55d488852ce","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7e21574195a45fc193555fa40e99fed16565ff7e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4e034f7e563ab723b93a59980e4a1bb33198ece8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/17440dbc66ab98b410514b04987f61deedb86751","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/f4435f476b9bf059cd9e26a69f5b29c768d00375","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/dbde7bc91093fa9c2410e418b236b70fde044b73","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d0fa70aca54c8643248e89061da23752506ec0d4","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:59:20.503Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-41017","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:24:38.749773Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:05.610Z"}}]}}}