]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 15:36:31 +0000 (08:36 -0700)
commitd03b79f459c7935cff830d98373474f440bd03ae
treeca8b1cdb60e6171d95deb5e46b86f65c8e6e868d
parentd13a3824bfd2b4774b671a75cf766a16637a0e67
net: atm: fix /proc/net/atm/lec handling

/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>
net/atm/lec.c