GPU VulnDB

Database/Kernel, userspace & hypervisor

Linux kernel page cache (MAX_PAGECACHE_ORDER vs xarray limits in mm/filemap and mm/shmem): On arm64 kernels built with

CVSS 5.5CVE-2024-41031Kernel, userspace & hypervisor+2 more CVEscurated

Impact

On arm64 kernels built with a 64KB base page size, HPAGE_PMD_ORDER (512MB) is larger than the maximum order xarray can split, so truncating or hole-punching a large THP-backed page cache entry hits a WARN_ON in xas_split_alloc() and the split fails. An unprivileged process can reach it with an ordinary mmap + madvise(MADV_HUGEPAGE) + fallocate(PUNCH_HOLE) sequence on an XFS file or on shmem, which is how it is rated as a local availability issue. This matters on arm64 GPU hosts - Grace-class nodes and other arm64 accelerator servers often run distribution kernels with 64KB pages - and shmem is the path container workloads and dataloaders use heavily. The vendor split one patch series across three ids: this entry covers the filemap readahead path, the shmem path, and the MAX_PAGECACHE_ORDER clamp itself; x86_64 hosts with 4KB pages are not affected.

Who can reach it

Local unprivileged user on the host or inside a container, able to create a file on XFS or in /dev/shm and call madvise/fallocate on it. No authentication beyond a shell or a pod. Requires an arm64 kernel with 64KB base page size and THP available for the file type.

What to do

Take the stable kernel update carrying the series (clamp MAX_PAGECACHE_ORDER to what xarray supports, plus the filemap and shmem skips); the record gives commit ids, not fixed release numbers, so match the commit in your distribution kernel. Installing it means a new kernel and a reboot of each arm64 node, scheduled as a drain and reboot. As an interim mitigation on affected arm64 hosts, avoid forcing shmem THP (/sys/kernel/mm/transparent_hugepage/shmem_enabled), or run a 4KB-page kernel where that is an option.

Also covers 2 CVEs

The vendor assigned a separate id to each affected code path. They share this advisory, this score and this fix, so they are one entry here.

CVE-2024-42241CVE-2024-42243

References

Related entries

All Kernel, userspace & hypervisor entries

This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.