From: Zhengchuan Liang <zcliangcn@gmail.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>,
Oscar Salvador <osalvador@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
Davidlohr Bueso <davidlohr@hp.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/hugetlb: stop hashing address_space pointers for fault mutexes
Date: Thu, 26 Nov 2026 16:13:58 -0800 [thread overview]
Message-ID: <CAOny8puwHRsnFabwkMMfgkRVHBFbXFYC3ANweN5Odr2wFdvrxQ@mail.gmail.com> (raw)
In-Reply-To: <3ee0f274-0089-4450-9888-7be659af9d63@kernel.org>
On Thu, Nov 26, 2026 at 3:17 AM David Hildenbrand (Arm)
<david@kernel.org> 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
next prev parent reply other threads:[~2026-11-27 0:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 6:15 Zhengchuan Liang
2026-11-25 11:58 ` David Hildenbrand (Arm)
2026-11-25 18:59 ` Zhengchuan Liang
2026-11-26 11:17 ` David Hildenbrand (Arm)
2026-11-27 0:13 ` Zhengchuan Liang [this message]
2026-11-26 11:20 ` David Hildenbrand (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOny8puwHRsnFabwkMMfgkRVHBFbXFYC3ANweN5Odr2wFdvrxQ@mail.gmail.com \
--to=zcliangcn@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=davidlohr@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
--cc=osalvador@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®