CVE-2023-54062

Linux Kernel ext4 Use-After-Free (affects multiple versions)

Title source: llm
STIX 2.1

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.

Scores

EPSS 0.0020
EPSS Percentile 10.4%

Details

Status published
Products (35)
linux/Kernel < 4.14.315linux
linux/Kernel 4.15.0 - 4.19.283linux
linux/Kernel 4.20.0 - 5.4.243linux
linux/Kernel 5.11.0 - 5.15.112linux
linux/Kernel 5.16.0 - 6.1.29linux
linux/Kernel 5.5.0 - 5.10.180linux
linux/Kernel 6.2.0 - 6.2.16linux
linux/Kernel 6.3.0 - 6.3.3linux
Linux/Linux < 6.3
Linux/Linux 1e9d62d252812575ded7c620d8fc67c32ff06c16 - b2fab1807d26acd1c6115b95b5eddd697d84751b
... and 25 more
Published Dec 24, 2025
Tracked Since Feb 18, 2026