CVE-2022-49456 Information
Description
In the Linux kernel the following vulnerability has been resolved:
bonding: fix missed rcu protection
When removing the rcu_read_lock in bond_ethtool_get_ts_info() as discussed [1] I didn’t notice it could be called via setsockopt which doesn’t hold rcu lock as syzbot pointed:
stack backtrace:
CPU: 0 PID: 3599 Comm: syz-executor317 Not tainted 5.18.0-rc5-syzkaller-01392-g01f4685797a5 0
Hardware name: Google Google Compute Engine/Google Compute Engine BIOS Google 01/01/2011
Call Trace:
Fix it by adding rcu_read_lock and take a ref on the real_dev. Since dev_hold() and dev_put() can take NULL these days we can skip checking if real_dev exist.
[1] https://lore.kernel.org/netdev/27565.1642742439@famine/
Reference
https://git.kernel.org/stable/c/1b66a533c47d29b38af8e05fbb53b609a5ba3a4e https://git.kernel.org/stable/c/85eed460681da71b359ed906bce4d800081db854 https://git.kernel.org/stable/c/9b80ccda233fa6c59de411bf889cc4d0e028f2c7
Share on: