From: Borislav Petkov <bp@alien8.de>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Andy Lutomirski <luto@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] x86/setup_data: validate indirect entry sizes before dereferencing them
Date: Sat, 4 Apr 2026 23:53:10 +0200 [thread overview]
Message-ID: <20260404215310.GAadGIRsTK-sb_SkCS@fat_crate.local> (raw)
In-Reply-To: <20260404190001.1-x86-setup-data-pengpeng@iscas.ac.cn>
On Sat, Apr 04, 2026 at 09:48:44PM +0800, Pengpeng Hou wrote:
> Several x86 setup_data consumers treat SETUP_INDIRECT entries as though
> struct setup_indirect is always fully present once the outer setup_data
> header has been read.
>
> That assumption is too strong. A malformed boot-time setup_data entry can
> carry a short or overflowing data->len, causing the kernel to remap less
> than a full indirect header and then dereference indirect->type, addr, or
> len outside the mapped range.
And? Why do we care?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
next prev parent reply other threads:[~2026-04-04 21:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-04 13:48 Pengpeng Hou
2026-04-04 9:32 ` [PATCH 2/2] x86/boot/compressed/kaslr: validate indirect setup_data payloads Pengpeng Hou
2026-04-04 21:53 ` Borislav Petkov [this message]
2026-04-05 1:40 ` [PATCH 1/2] x86/setup_data: validate indirect entry sizes before dereferencing them Pengpeng Hou
2026-04-05 11:06 ` Borislav Petkov
2026-04-06 20:54 ` H. Peter Anvin
2026-04-05 3:20 ` Pengpeng Hou
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=20260404215310.GAadGIRsTK-sb_SkCS@fat_crate.local \
--to=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=pengpeng@iscas.ac.cn \
--cc=peterz@infradead.org \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/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®