Skip to content
Commit 588ce08b authored by Aleksander Jan Bajkowski's avatar Aleksander Jan Bajkowski Committed by Zhengchao Shao
Browse files

net: ethernet: lantiq_etop: fix double free in detach

stable inclusion
from stable-v4.19.318
commit 1a2db00a554cfda57c397cce79b2804bf9633fec
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAGEKE
CVE: CVE-2024-41046

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1a2db00a554cfda57c397cce79b2804bf9633fec



---------------------------

[ Upstream commit e1533b6319ab9c3a97dad314dd88b3783bc41b69 ]

The number of the currently released descriptor is never incremented
which results in the same skb being released multiple times.

Fixes: 504d4721 ("MIPS: Lantiq: Add ethernet driver")
Reported-by: default avatarJoe Perches <joe@perches.com>
Closes: https://lore.kernel.org/all/fc1bf93d92bb5b2f99c6c62745507cc22f3a7b2d.camel@perches.com/


Signed-off-by: default avatarAleksander Jan Bajkowski <olek2@wp.pl>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20240708205826.5176-1-olek2@wp.pl


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
parent 6a793b8e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment