[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2827458c-af0f-4533-9136-1fd66223b77a@roeck-us.net>
Date: Thu, 18 Dec 2025 10:45:54 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Junrui Luo <moonafterrain@...look.com>
Cc: "Darrick J. Wong" <djwong@...ibm.com>,
"Mark M. Hoffman" <mhoffman@...htlink.com>,
linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org,
Yuhao Jiang <danisjiang@...il.com>, stable@...r.kernel.org
Subject: Re: [PATCH] hwmon: (ibmpex) Fix use-after-free in sysfs removal
On Thu, Dec 18, 2025 at 03:56:47PM +0800, Junrui Luo wrote:
> There is a use-after-free vulnerability in the ibmpex driver where
> the driver frees the sensors array while sysfs read operations
> via ibmpex_show_sensor() are still in progress.
>
> Fix this by reordering cleanup operations in ibmpex_bmc_delete().
>
> Reported-by: Yuhao Jiang <danisjiang@...il.com>
> Reported-by: Junrui Luo <moonafterrain@...look.com>
> Fixes: 57c7c3a0fdea ("hwmon: IBM power meter driver")
> Cc: stable@...r.kernel.org
> Signed-off-by: Junrui Luo <moonafterrain@...look.com>
A more complete fix is already queued in the hwmon branch as commit
6946c726c3f4 ("hwmon: (ibmpex) fix use-after-free in high/low store").
Thanks,
Guenter
Powered by blists - more mailing lists