]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: atm: fix /proc/net/atm/lec handling
authorEric Dumazet <edumazet@google.com>
Wed, 18 Jun 2025 14:08:44 +0000 (14:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:36 +0000 (11:05 +0100)
commitca3829c18c8d0ceb656605d3bff6bb3dfb078589
tree1eaa94623a359022d0a8f70bc18943b51a2b7912
parent17e156a94e94a906a570dbf9b48877956c60bef8
net: atm: fix /proc/net/atm/lec handling

[ Upstream commit d03b79f459c7935cff830d98373474f440bd03ae ]

/proc/net/atm/lec must ensure safety against dev_lec[] changes.

It appears it had dev_put() calls without prior dev_hold(),
leading to imbalance and UAF.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com> # Minor atm contributor
Link: https://patch.msgid.link/20250618140844.1686882-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/atm/lec.c