Re: [PATCH 0/6] w1: Fix Critical and High issues reported by Sashiko
From: Greg Kroah-Hartman
Date: Wed Dec 02 2026 - 04:45:16 EST
On Wed, Dec 02, 2026 at 09:36:42AM +0000, Lee Jones wrote:
> These issues were reported by Sashiko.
>
> This series addresses all open Critical and High severity reports in
> the 1-Wire (w1) subsystem. It is based on v7.4-rc4 as it builds on
> the w1 locking fixes merged in char-misc-7.4-rc4. It fixes a slave
> device lifetime use-after-free, a kthread teardown / netlink race, an
> uninitialised heap leak and byte-count truncation in block reads,
> unlocked w1_masters removal traversal, a runtime crccheck NULL pointer
> dereference, and an unbounded MMIO polling loop.
>
> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
> Cc: Danilo Krummrich <dakr@xxxxxxxxxx>
> Cc: David Fries <David@xxxxxxxxx>
> Cc: Evgeniy Polyakov <zbr@xxxxxxxxxxx>
> Cc: franm@xxxxxxxxxxxxxxxxxx
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Cc: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> Cc: Markus Franke <franke.m@xxxxxxxxxxx>
> Cc: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
> Cc: Thomas Bogendoerfer <tbogendoerfer@xxxxxxx>
> Cc: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@xxxxxxxxxxxx>
>
> Lee Jones (6):
> w1: Free slave structure in w1_slave_release()
> w1: Synchronise thread teardown with netlink callbacks
> w1: Return actual bytes read from w1_read_block() and rw_read()
> w1: Protect w1_masters traversal with w1_mlock during removal
> w1: ds28e04: Always allocate family data to avoid NULL dereference
> w1: sgi: Add timeout to sgi_w1_wait() polling loop
>
> drivers/w1/masters/ds2490.c | 2 +-
> drivers/w1/masters/sgi_w1.c | 9 ++++++---
> drivers/w1/slaves/w1_ds28e04.c | 18 +++++++----------
> drivers/w1/w1.c | 35 +++++++++++++++++++++-------------
> drivers/w1/w1_int.c | 16 +++++++++++-----
> drivers/w1/w1_io.c | 7 +++++--
> drivers/w1/w1_netlink.c | 9 +++++++--
> include/linux/w1.h | 4 ++--
> 8 files changed, 61 insertions(+), 39 deletions(-)
Krzysztof, if you ack these, I can take them directly if they look good
to you.
"Odd" that the "other" AI model didn't find these issues before, I guess
different models "know" different things...
thanks,
greg k-h