CVE-2023-54062 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: fix invalid free tracking in ext4_xattr_move_to_block() In ext4_xattr_move_to_block(), the value of the extended attribute which we need to move to an external block may be allocated by kvmalloc() if the value is stored in an external inode. So at the end of the function the code tried to check if this was the case by testing entry->e_value_inum. However, at this point, the pointer to the xattr entry is no longer valid, because it was removed from the original location where it had been stored. So we could end up calling kvfree() on a pointer which was not allocated by kvmalloc(); or we could also potentially leak memory by not freeing the buffer when it should be freed. Fix this by storing whether it should be freed in a separate variable.
A vulnerability in the Linux kernel's ext4 file system has been addressed. The issue arose in the ext4_xattr_move_to_block() function, where the extended attribute value being moved to an external block could be allocated by kvmalloc() if stored in an external inode. The function attempted to verify this by checking entry->e_value_inum. However, the pointer to the xattr entry was no longer valid, having been removed from its original location. This could lead to calling kvfree() on a pointer not allocated by kvmalloc(), or potentially leaking memory by failing to free a buffer when necessary. The vulnerability has been fixed by tracking whether the buffer should be freed using a separate variable.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 24, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1a8822343e67432b658145d2760a524c884da9d4 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/76887be2a96193cd11be818551b8934ecdb3123f | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8beaa3cb293a8f7bacf711cf52201d59859dbc40 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a18670395e5f28acddeca037c5e4bd2ea961b70a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b2fab1807d26acd1c6115b95b5eddd697d84751b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b87c7cdf2bed4928b899e1ce91ef0d147017ba45 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/c5fa4eedddd1c8342ce533cb401c0e693e55b4e3 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/f30f3391d089dc91aef91d08f4b04a6c0df2b067 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 24, 2025 | New CVE Received | kernel.org |
Volerion