Re: [PATCH] mm/hugetlb: stop hashing address_space pointers for fault mutexes

From: Zhengchuan Liang

Date: Thu Nov 26 2026 - 19:14:13 EST


On Thu, Nov 26, 2026 at 3:17 AM David Hildenbrand (Arm)
<david@xxxxxxxxxx> wrote:
> > KernelSnitch (NDSS 2025) demonstrated why the address of an
> > attacker-created object can be useful. It recovered an mm_struct address,
> > freed all objects in the corresponding slab, reclaimed the slab pages
> > with msg_msg objects, and thereby learned the addresses of those
> > replacement objects. Here an attacker can similarly allocate and release
> > hugetlbfs_inode_cache objects by creating and closing HugeTLB memfds. I
> > have not demonstrated full-slab reclamation or cross-cache reuse for this
> > case.
>
> Right. Do we have any gut feeling how exploitable this is?

Thanks. I tested the cross-cache reuse step. An unprivileged process can
release the relevant hugetlbfs_inode_cache slab and reclaim the exact page
with msg_msg allocations containing attacker-controlled data.

Thus, the recovered address can identify live replacement objects after
the inode is freed. This is not a corruption primitive by itself, but it
provides a concrete heap-layout primitive for a subsequent attack.

Best,
Zhengchuan