From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: co <co+e5693071d903b832@bugs.sh>
Cc: speakup@linux-speakup.org, William Hubbs <w.d.hubbs@gmail.com>,
Chris Brannon <chris@the-brannons.com>,
Kirk Reiser <kirk@reisers.ca>, Petr Mladek <pmladek@suse.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Oleg Nesterov <oleg@redhat.com>,
Biju Das <biju.das.jz@bp.renesas.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Song Liu <song@kernel.org>, Greg Kroah-Hartman <gregkh@suse.de>,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] drivers/tty: NULL pointer dereference in paste_selection()
Date: Fri, 28 Aug 2026 21:55:45 +0200 [thread overview]
Message-ID: <apHnwT7aG3Uy4oyC@end> (raw)
In-Reply-To: <sQDn678D0YppKseC8dIUC0I6uKmzsrOVtoN1@bugs.sh>
Hello,
Thanks for the notice, this is indeed a small timing window between
switching VT and pasting text. In practice only root can trigger this,
so this is not a security issue, but I will add a NULL check to avoid
it.
With regards,
Samuel
co, le jeu. 27 août 2026 12:42:57 +0000, a ecrit:
> We found a bug reachable in:
>
> path drivers/tty/vt/selection.c` (fault site), `drivers/accessibility/speakup/main.c` + `drivers/accessibility/speakup
> crash NULL pointer dereference in paste_selection()
> commit f5098b6bae76 ("Linux 7.2-rc5")
>
> Config, environment, the sanitizer report and a C reproducer follow.
>
> == Notes ===============================================================
> If you patch the bug based on our artifacts, a tag would be
> appreciated:
>
> Reported-by: co+e5693071d903b832@bugs.sh
>
> Everything in this mail is validated by the reproducer below.
>
> We also hold an LLM-generated root-cause analysis and a candidate
> patch. The patch passes an A/B test: the same reproducer panics the
> unpatched kernel and runs clean on the patched one. Neither has had
> human review, so both still require validation before you send or
> apply them. Available on:
>
> patch.diff https://bugs.sh/b/e5693071d903b832/patch.diff
> report.md https://bugs.sh/b/e5693071d903b832/report.md
>
> This is an open science project. The code and the full set of PoCs
> are not public at this moment, as we intend to disclose our findings
> in an ethical way.
>
> Happy to test patches. Complaints and suggestions about our work
> are welcome at:
>
> cedalion@bugs.sh
>
> == Environment =========================================================
> Reproduced on f5098b6bae76 ("Linux 7.2-rc5")
> VM setup https://bugs.sh/b/e5693071d903b832/run.sh
> config https://bugs.sh/b/e5693071d903b832/config.gz
> poc https://bugs.sh/b/e5693071d903b832/repro.c
>
> == Sanitizer Report ====================================================
> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000044: 0000 [#1] SMP KASAN NOPTI
> KASAN: null-ptr-deref in range [0x0000000000000220-0x0000000000000227]
> CPU: 1 UID: 0 PID: 49 Comm: kworker/1:1 Not tainted 7.2.0-rc5 #10 PREEMPTLAZY
> Workqueue: events __speakup_paste_selection
> RIP: 0010:paste_selection (drivers/tty/vt/selection.c:393)
> Call Trace:
> __speakup_paste_selection (drivers/accessibility/speakup/selection.c:112)
> process_one_work (kernel/workqueue.c:3322)
> worker_thread (kernel/workqueue.c:3405 kernel/workqueue.c:3486)
> kthread (kernel/kthread.c:436)
> ret_from_fork (arch/x86/kernel/process.c:158)
> ret_from_fork_asm (arch/x86/entry/entry_64.S:245)
> Kernel panic - not syncing: Fatal exception
>
>
> ---
> The report format is based on syzbot bug report.
>
> This report is generated by a bot. It may contain errors.
> See https://github.com/n132/cedalion for more information.
>
> For any issue with this report, reach out to cedalion@bugs.sh
>
> If the report is already addressed, let us know by replying with:
> #co fix: <commit hash>
>
> If the report is a duplicate of another one, reply with:
> #co dup: <lore link>
>
> If you want to undo deduplication, reply with:
> #co undup
>
>
--
Samuel
<c> hiri, le cri ici, c des marrants
<c> j'ai un rep ".uglyhackdirectorywithoutacls" ds mon home
-+- #ens-mim en stage -+-
next prev parent reply other threads:[~2026-08-28 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 12:42 [BUG] drivers/tty: NULL pointer dereference in paste_selection() co
2026-08-28 19:55 ` Samuel Thibault [this message]
2026-08-29 8:00 ` Weiming Shi
2026-08-29 9:11 ` Samuel Thibault
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=apHnwT7aG3Uy4oyC@end \
--to=samuel.thibault@ens-lyon.org \
--cc=bigeasy@linutronix.de \
--cc=biju.das.jz@bp.renesas.com \
--cc=chris@the-brannons.com \
--cc=co+e5693071d903b832@bugs.sh \
--cc=geert+renesas@glider.be \
--cc=gregkh@suse.de \
--cc=kirk@reisers.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=pmladek@suse.com \
--cc=song@kernel.org \
--cc=speakup@linux-speakup.org \
--cc=w.d.hubbs@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.