The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Nikolay Borisov <nik.borisov@suse.com>
Cc: cve@kernel.org, linux-kernel@vger.kernel.org,
	linux-cve-announce@vger.kernel.org
Subject: Re: CVE-2021-47326: x86/signal: Detect and prevent an alternate signal stack overflow
Date: Thu, 23 May 2024 15:31:03 +0200	[thread overview]
Message-ID: <2024052322-outage-grit-a4fe@gregkh> (raw)
In-Reply-To: <06570587-dc49-4885-83da-7a386f012106@suse.com>

On Thu, May 23, 2024 at 01:19:17PM +0300, Nikolay Borisov wrote:
> 
> 
> On 21.05.24 г. 17:36 ч., Greg Kroah-Hartman wrote:
> > Description
> > ===========
> > 
> > In the Linux kernel, the following vulnerability has been resolved:
> > 
> > x86/signal: Detect and prevent an alternate signal stack overflow
> > 
> > The kernel pushes context on to the userspace stack to prepare for the
> > user's signal handler. When the user has supplied an alternate signal
> > stack, via sigaltstack(2), it is easy for the kernel to verify that the
> > stack size is sufficient for the current hardware context.
> > 
> > Check if writing the hardware context to the alternate stack will exceed
> > it's size. If yes, then instead of corrupting user-data and proceeding with
> > the original signal handler, an immediate SIGSEGV signal is delivered.
> > 
> > Refactor the stack pointer check code from on_sig_stack() and use the new
> > helper.
> > 
> > While the kernel allows new source code to discover and use a sufficient
> > alternate signal stack size, this check is still necessary to protect
> > binaries with insufficient alternate signal stack size from data
> > corruption.
> > 
> > The Linux kernel CVE team has assigned CVE-2021-47326 to this issue.
> 
> 
> I'd like to dispute this CVE. Basically a process can pass in a
> wrongly-sized stack which will cause its own stack to be corrupted. If
> anything this affects the process rather than the kernel.

Ah, good catch, thanks, I'll go revoke this CVE now.

Thanks for the review, much appreciated!

greg k-h

      reply	other threads:[~2024-05-23 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2024052133-CVE-2021-47326-fd53@gregkh>
2024-05-23 10:19 ` CVE-2021-47326: x86/signal: Detect and prevent an alternate signal stack overflow Nikolay Borisov
2024-05-23 13:31   ` Greg Kroah-Hartman [this message]

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=2024052322-outage-grit-a4fe@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=cve@kernel.org \
    --cc=linux-cve-announce@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nik.borisov@suse.com \
    /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