{"api_version":"1","generated_at":"2026-10-29T10:15:16+00:00","cve":"CVE-2023-54062","urls":{"html":"https://cve.report/CVE-2023-54062","api":"https://cve.report/api/cve/CVE-2023-54062.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-54062","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-54062"},"summary":{"title":"ext4: fix invalid free tracking in ext4_xattr_move_to_block()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix invalid free tracking in ext4_xattr_move_to_block()\n\nIn ext4_xattr_move_to_block(), the value of the extended attribute\nwhich we need to move to an external block may be allocated by\nkvmalloc() if the value is stored in an external inode.  So at the end\nof the function the code tried to check if this was the case by\ntesting entry->e_value_inum.\n\nHowever, at this point, the pointer to the xattr entry is no longer\nvalid, because it was removed from the original location where it had\nbeen stored.  So we could end up calling kvfree() on a pointer which\nwas not allocated by kvmalloc(); or we could also potentially leak\nmemory by not freeing the buffer when it should be freed.  Fix this by\nstoring whether it should be freed in a separate variable.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-12-24 13:16:07","updated_at":"2026-10-15 22:17:51"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c5fa4eedddd1c8342ce533cb401c0e693e55b4e3","name":"https://git.kernel.org/stable/c/c5fa4eedddd1c8342ce533cb401c0e693e55b4e3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a","name":"https://git.kernel.org/stable/c/ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b87c7cdf2bed4928b899e1ce91ef0d147017ba45","name":"https://git.kernel.org/stable/c/b87c7cdf2bed4928b899e1ce91ef0d147017ba45","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8beaa3cb293a8f7bacf711cf52201d59859dbc40","name":"https://git.kernel.org/stable/c/8beaa3cb293a8f7bacf711cf52201d59859dbc40","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/76887be2a96193cd11be818551b8934ecdb3123f","name":"https://git.kernel.org/stable/c/76887be2a96193cd11be818551b8934ecdb3123f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a18670395e5f28acddeca037c5e4bd2ea961b70a","name":"https://git.kernel.org/stable/c/a18670395e5f28acddeca037c5e4bd2ea961b70a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f30f3391d089dc91aef91d08f4b04a6c0df2b067","name":"https://git.kernel.org/stable/c/f30f3391d089dc91aef91d08f4b04a6c0df2b067","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1a8822343e67432b658145d2760a524c884da9d4","name":"https://git.kernel.org/stable/c/1a8822343e67432b658145d2760a524c884da9d4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b2fab1807d26acd1c6115b95b5eddd697d84751b","name":"https://git.kernel.org/stable/c/b2fab1807d26acd1c6115b95b5eddd697d84751b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-54062","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54062","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c7851208abffe5ae4deb01cf48763911dc14fc67 76887be2a96193cd11be818551b8934ecdb3123f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f5cdc6a7339f250d44d4d469ed7a474ac0d6c7a7 f30f3391d089dc91aef91d08f4b04a6c0df2b067 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3b28c799a1334adb5a19f42f03abe0d8cbb05938 ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d738789ae9ec47d3458a008788f3cdc862ebf0cb 1a8822343e67432b658145d2760a524c884da9d4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a6744e14ce7045ab1a728bde9595f62fbd39f1d2 8beaa3cb293a8f7bacf711cf52201d59859dbc40 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8b6d06b3be7648b3b0f428558293ddf6e2cb94bf c5fa4eedddd1c8342ce533cb401c0e693e55b4e3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d2efaf8c870c7067b8d1779773134f3481cd8f68 a18670395e5f28acddeca037c5e4bd2ea961b70a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1e9d62d252812575ded7c620d8fc67c32ff06c16 b2fab1807d26acd1c6115b95b5eddd697d84751b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1e9d62d252812575ded7c620d8fc67c32ff06c16 b87c7cdf2bed4928b899e1ce91ef0d147017ba45 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.14.308 4.14.315 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19.276 4.19.283 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.235 5.4.243 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.173 5.10.180 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.99 5.15.112 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.16 6.1.29 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2.3 6.2.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.14.315 4.14.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19.283 4.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.243 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.180 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.112 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.29 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2.16 6.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.3.3 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":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2023","cve_id":"54062","cve":"CVE-2023-54062","epss":"0.001620000","percentile":"0.048920000","score_date":"2026-10-15","updated_at":"2026-10-16 00:06:11"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2023-54062","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-10-15T21:38:11.218475Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-10-15T21:41:38.822Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ext4/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"76887be2a96193cd11be818551b8934ecdb3123f","status":"affected","version":"c7851208abffe5ae4deb01cf48763911dc14fc67","versionType":"git"},{"lessThan":"f30f3391d089dc91aef91d08f4b04a6c0df2b067","status":"affected","version":"f5cdc6a7339f250d44d4d469ed7a474ac0d6c7a7","versionType":"git"},{"lessThan":"ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a","status":"affected","version":"3b28c799a1334adb5a19f42f03abe0d8cbb05938","versionType":"git"},{"lessThan":"1a8822343e67432b658145d2760a524c884da9d4","status":"affected","version":"d738789ae9ec47d3458a008788f3cdc862ebf0cb","versionType":"git"},{"lessThan":"8beaa3cb293a8f7bacf711cf52201d59859dbc40","status":"affected","version":"a6744e14ce7045ab1a728bde9595f62fbd39f1d2","versionType":"git"},{"lessThan":"c5fa4eedddd1c8342ce533cb401c0e693e55b4e3","status":"affected","version":"8b6d06b3be7648b3b0f428558293ddf6e2cb94bf","versionType":"git"},{"lessThan":"a18670395e5f28acddeca037c5e4bd2ea961b70a","status":"affected","version":"d2efaf8c870c7067b8d1779773134f3481cd8f68","versionType":"git"},{"lessThan":"b2fab1807d26acd1c6115b95b5eddd697d84751b","status":"affected","version":"1e9d62d252812575ded7c620d8fc67c32ff06c16","versionType":"git"},{"lessThan":"b87c7cdf2bed4928b899e1ce91ef0d147017ba45","status":"affected","version":"1e9d62d252812575ded7c620d8fc67c32ff06c16","versionType":"git"},{"lessThan":"4.14.315","status":"affected","version":"4.14.308","versionType":"semver"},{"lessThan":"4.19.283","status":"affected","version":"4.19.276","versionType":"semver"},{"lessThan":"5.4.243","status":"affected","version":"5.4.235","versionType":"semver"},{"lessThan":"5.10.180","status":"affected","version":"5.10.173","versionType":"semver"},{"lessThan":"5.15.112","status":"affected","version":"5.15.99","versionType":"semver"},{"lessThan":"6.1.29","status":"affected","version":"6.1.16","versionType":"semver"},{"lessThan":"6.2.16","status":"affected","version":"6.2.3","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ext4/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.3"},{"lessThan":"6.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"4.14.*","status":"unaffected","version":"4.14.315","versionType":"semver"},{"lessThanOrEqual":"4.19.*","status":"unaffected","version":"4.19.283","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.243","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.180","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.112","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.29","versionType":"semver"},{"lessThanOrEqual":"6.2.*","status":"unaffected","version":"6.2.16","versionType":"semver"},{"lessThanOrEqual":"6.3.*","status":"unaffected","version":"6.3.3","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":"4.14.315","versionStartIncluding":"4.14.308","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.19.283","versionStartIncluding":"4.19.276","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.243","versionStartIncluding":"5.4.235","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.180","versionStartIncluding":"5.10.173","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.112","versionStartIncluding":"5.15.99","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.29","versionStartIncluding":"6.1.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.2.16","versionStartIncluding":"6.2.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.3.3","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.4","versionStartIncluding":"6.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix invalid free tracking in ext4_xattr_move_to_block()\n\nIn ext4_xattr_move_to_block(), the value of the extended attribute\nwhich we need to move to an external block may be allocated by\nkvmalloc() if the value is stored in an external inode.  So at the end\nof the function the code tried to check if this was the case by\ntesting entry->e_value_inum.\n\nHowever, at this point, the pointer to the xattr entry is no longer\nvalid, because it was removed from the original location where it had\nbeen stored.  So we could end up calling kvfree() on a pointer which\nwas not allocated by kvmalloc(); or we could also potentially leak\nmemory by not freeing the buffer when it should be freed.  Fix this by\nstoring whether it should be freed in a separate variable."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached through local filesystem operations — `setxattr()` plus any inode-dirtying syscall on a mounted ext4 volume, or by mounting a crafted ext4 image. No network or remote peer is involved.\nAC:L - No race and no memory-layout luck is needed; the invalid free happens deterministically whenever the moved inline-value xattr is followed by an EA-inode-backed entry, and the attacker controls both the entry ordering (name-sorted) and the sizes that drive `ext4_xattr_make_inode_space()`'s selection, or controls everything outright via a crafted image.\nPR:L - An ordinary unprivileged user only needs a file they own to set `user.*` xattrs on and then dirty the inode; no capability, and `ext4_expand_extra_isize_ea()` runs from the ordinary `ext4_mark_inode_dirty()` path.\nUI:N - In the local-user scenario the attacker performs every step themselves — setxattr, then touch/write to dirty the inode — with no victim action required.\nS:U - The corruption stays within the kernel's own security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - `__free_pages()` on a still-referenced page-cache page underflows its refcount, so the page is recycled while ext4 keeps reading the inode table through the stale `buffer_head`, disclosing whatever kernel data now occupies that page; the `WARN` also leaks a kernel pointer.\nI:H - After the premature page free, ext4 continues writing inode and xattr bytes into the reallocated page through the stale `buffer_head`, giving a page-granularity kernel write primitive suitable for privilege escalation; slab/memcg accounting is corrupted as well.\nA:H - On 4.19/5.10-era kernels `kfree()` on the non-slab pointer hits `BUG_ON(!PageCompound(page))` for an immediate panic; on 6.x it produces a `WARN_ON_ONCE` (panic under `panic_on_warn`) plus a page refcount underflow that leads to a later oops, and the inverse case leaks memory on every attempt."}]}],"providerMetadata":{"dateUpdated":"2026-08-05T09:16:50.491Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/76887be2a96193cd11be818551b8934ecdb3123f"},{"url":"https://git.kernel.org/stable/c/f30f3391d089dc91aef91d08f4b04a6c0df2b067"},{"url":"https://git.kernel.org/stable/c/ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a"},{"url":"https://git.kernel.org/stable/c/1a8822343e67432b658145d2760a524c884da9d4"},{"url":"https://git.kernel.org/stable/c/8beaa3cb293a8f7bacf711cf52201d59859dbc40"},{"url":"https://git.kernel.org/stable/c/c5fa4eedddd1c8342ce533cb401c0e693e55b4e3"},{"url":"https://git.kernel.org/stable/c/a18670395e5f28acddeca037c5e4bd2ea961b70a"},{"url":"https://git.kernel.org/stable/c/b2fab1807d26acd1c6115b95b5eddd697d84751b"},{"url":"https://git.kernel.org/stable/c/b87c7cdf2bed4928b899e1ce91ef0d147017ba45"}],"title":"ext4: fix invalid free tracking in ext4_xattr_move_to_block()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2023-54062","datePublished":"2025-12-24T12:23:08.649Z","dateReserved":"2025-12-24T12:21:05.092Z","dateUpdated":"2026-10-15T21:41:38.822Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-12-24 13:16:07","lastModifiedDate":"2026-10-15 22:17:51","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-15T21:38:11.218475Z","id":"CVE-2023-54062","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2023","CveId":"54062","Ordinal":"1","Title":"ext4: fix invalid free tracking in ext4_xattr_move_to_block()","CVE":"CVE-2023-54062","Year":"2023"},"notes":[{"CveYear":"2023","CveId":"54062","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix invalid free tracking in ext4_xattr_move_to_block()\n\nIn ext4_xattr_move_to_block(), the value of the extended attribute\nwhich we need to move to an external block may be allocated by\nkvmalloc() if the value is stored in an external inode.  So at the end\nof the function the code tried to check if this was the case by\ntesting entry->e_value_inum.\n\nHowever, at this point, the pointer to the xattr entry is no longer\nvalid, because it was removed from the original location where it had\nbeen stored.  So we could end up calling kvfree() on a pointer which\nwas not allocated by kvmalloc(); or we could also potentially leak\nmemory by not freeing the buffer when it should be freed.  Fix this by\nstoring whether it should be freed in a separate variable.","Type":"Description","Title":"ext4: fix invalid free tracking in ext4_xattr_move_to_block()"}]}}}