Input validation error in Linux kernel - CVE-2022-49698
Published: February 27, 2025 / Updated: May 11, 2025
Vulnerability details
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to improper input validation within the DEFINE_PER_CPU(), nft_ng_random_gen() and nft_ng_random_init() functions in net/netfilter/nft_numgen.c, within the DEFINE_PER_CPU(), nft_meta_get_eval_ifname(), nft_meta_get_eval() and nft_meta_get_init() functions in net/netfilter/nft_meta.c. A local user can perform a denial of service (DoS) attack.
Affected software
Ubuntu
linux (Ubuntu package)
linux-xilinx-zynqmp (Ubuntu package)
linux-bluefield (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-raspi (Ubuntu package)
linux-oracle (Ubuntu package)
linux-azure (Ubuntu package)
How to mitigate CVE-2022-49698
linux (Ubuntu package) - addressed in versions 5.4.0.225.217, 5.4.0-225.245, 5.4.0.225.245~18.04.1, 5.4.0-225.245~18.04.1, 5.4.0-1058.61, 5.4.0-1100.105, 5.4.0.1100.105~18.04.1, 5.4.0-1100.105~18.04.1, 5.4.0.1100.129, 5.4.0.1141.137, 5.4.0-1141.150, 5.4.0.1154.151, 5.4.0-1154.164, 5.4.0.1154.164~18.04.1, 5.4.0-1154.164~18.04.1, 5.4.0.1157.159, 5.4.0-1157.166, 5.4.0.1157.166~18.04.1, 5.4.0-1157.166~18.04.1
linux-xilinx-zynqmp (Ubuntu package) - addressed in versions 5.4.0.1072.72, 5.4.0-1072.76
linux-bluefield (Ubuntu package) - addressed in versions 5.4.0.1116.112, 5.4.0-1116.123
linux-aws-fips (Ubuntu package) - addressed in versions 5.4.0.1128.125, 5.4.0-1128.138, 5.4.0.1154.101, 5.4.0-1154.164+fips1, 5.4.0.1157.99, 5.4.0-1157.166+fips1
linux-raspi (Ubuntu package) - addressed in versions 5.4.0-1137.150, 5.4.0-1137.150~18.04.1, 5.4.0.1137.150~18.04.1, 5.4.0.1137.168
linux-oracle (Ubuntu package) - addressed in versions 5.4.0.1152.146, 5.4.0-1152.162, 5.4.0.1152.162~18.04.1, 5.4.0-1152.162~18.04.1
linux-azure (Ubuntu package) - addressed in versions 5.4.0.1157.151, 5.4.0-1157.164, 5.4.0-1157.164~18.04.1, 5.4.0.1157.164~18.04.1, 5.4.0.1158.95, 5.4.0-1158.165+fips1
External References
- https://git.kernel.org/stable/c/15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b
- https://git.kernel.org/stable/c/6ce71f83f798be7e1ca68707fec449fbecb38852
- https://git.kernel.org/stable/c/b1fd94e704571f98b21027340eecf821b2bdffba
- https://git.kernel.org/stable/c/d0906b0fffc9f19bc42708ca3e84e2089088386c
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.51