Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [6.18.y] Please pick greybus raw write-after-disconnect fix
@ 2026-11-24 21:51 Artem Dinaburg
  0 siblings, 0 replies; only message in thread
From: Artem Dinaburg @ 2026-11-24 21:51 UTC (permalink / raw)
  To: stable; +Cc: damien.riegel, elder, gregkh, greybus-dev, johan, linux-staging

Hi,

Please pick commit 84265cbd96b97058ef67e3f8be3933667a000835 ("greybus: raw:
fix use-after-free if write is called after disconnect") for 6.18.y. It
fixes CVE-2026-53024.

An open raw character device can outlive its Greybus connection. In 6.18.y,
raw_write() can still pass the destroyed connection to gb_operation_sync()
after disconnect. The fix serializes writes with disconnect and returns
-ENODEV for writes issued after disconnect.

The fix is in 6.1.191, 6.6.160, 6.12.114 and 7.0.10, and in mainline since
7.1. 6.18.y received only its companion, upstream commit 983cc2c7efbc
("greybus: raw: fix use-after-free on cdev close"), in 6.18.57; this fix
needs that commit for context and did not apply to 6.18.56. It applies
unchanged since 6.18.57, including on 6.18.65.

Compiled drivers/staging/greybus/raw.o on 6.18.64 from a cumulative x86_64
tree using allmodconfig. No kernel boot or runtime test was performed.

An LLM was used to check applicability and stable-queue history and to
draft this request; I reviewed the result.

Thanks,
Artem Dinaburg

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 21:51 [6.18.y] Please pick greybus raw write-after-disconnect fix Artem Dinaburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox