]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: misc: yurex: fix race between read and write
authorOliver Neukum <oneukum@suse.com>
Thu, 12 Sep 2024 13:21:22 +0000 (15:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:16 +0000 (15:11 +0200)
commit0bf337c41c5b9b2f3c8c42f696b8686cedaa832a
tree88ab9b96e8aba8b60e26c6d69a566c249a214a1e
parent979687509d75d5246ef34369405bbd3c5cd8dc37
USB: misc: yurex: fix race between read and write

[ Upstream commit 93907620b308609c72ba4b95b09a6aa2658bb553 ]

The write code path touches the bbu member in a non atomic manner
without taking the spinlock. Fix it.

The bug is as old as the driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
CC: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240912132126.1034743-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/misc/yurex.c