Skip to contentSkip to conversation

Please pick greybus raw write-after-disconnect fix

6.18.y Artem Dinaburg 1 participant 1 message Nov 24

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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