CVE-2025-22056 Information
Description
In the Linux kernel the following vulnerability has been resolved:
netfilter: nft_tunnel: fix geneve_opt type confusion addition
When handling multiple NFTA_TUNNEL_KEY_OPTS_GENEVE attributes the parsing logic should place every geneve_opt structure one by one compactly. Hence when deciding the next geneve_opt position the pointer addition should be in units of char .
However the current implementation erroneously does type conversion before the addition which will lead to heap out-of-bounds write.
[ 6.989857] ==================================================================
[ 6.990293] BUG: KASAN: slab-out-of-bounds in nft_tunnel_obj_init+0x977/0xa70
[ 6.990725] Write of size 124 at addr ffff888005f18974 by task poc/178
[ 6.991162]
[ 6.991259] CPU: 0 PID: 178 Comm: poc-oob-write Not tainted 6.1.132 1
[ 6.991655] Hardware name: QEMU Standard PC (i440FX + PIIX 1996) BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
[ 6.992281] Call Trace:
[ 6.992423]
Fix this bug with correct pointer addition and conversion in parse and dump code.
Reference
https://git.kernel.org/stable/c/0a93a710d6df334b828ea064c6d39fda34f901dc https://git.kernel.org/stable/c/1b755d8eb1ace3870789d48fbd94f386ad6e30be https://git.kernel.org/stable/c/28d88ee1e1cc8ac2d79aeb112717b97c5c833d43 https://git.kernel.org/stable/c/31d49eb436f2da61280508d7adf8c9b473b967aa https://git.kernel.org/stable/c/446d94898c560ed2f61e26ae445858a4c4830762 https://git.kernel.org/stable/c/708e268acb3a446ad2a8a3d2e9bd41cc23660cd6 https://git.kernel.org/stable/c/a263d31c8c92e5919d41af57d9479cfb66323782 https://git.kernel.org/stable/c/ca2adfc03cd6273f0b589fe65afc6f75e0fe116e
Share on: