CVE-2025-22056 netfilter: nft_tunnel: fix geneve_opt type confusion addition
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
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] <TASK>
[ 6.992586] dump_stack_lvl+0x44/0x5c
[ 6.992801] print_report+0x184/0x4be
[ 6.993790] kasan_report+0xc5/0x100
[ 6.994252] kasan_check_range+0xf3/0x1a0
[ 6.994486] memcpy+0x38/0x60
[ 6.994692] nft_tunnel_obj_init+0x977/0xa70
[ 6.995677] nft_obj_init+0x10c/0x1b0
[ 6.995891] nf_tables_newobj+0x585/0x950
[ 6.996922] nfnetlink_rcv_batch+0xdf9/0x1020
[ 6.998997] nfnetlink_rcv+0x1df/0x220
[ 6.999537] netlink_unicast+0x395/0x530
[ 7.000771] netlink_sendmsg+0x3d0/0x6d0
[ 7.001462] __sock_sendmsg+0x99/0xa0
[ 7.001707] ____sys_sendmsg+0x409/0x450
[ 7.002391] ___sys_sendmsg+0xfd/0x170
[ 7.003145] __sys_sendmsg+0xea/0x170
[ 7.004359] do_syscall_64+0x5e/0x90
[ 7.005817] entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[ 7.006127] RIP: 0033:0x7ec756d4e407
[ 7.006339] Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 faf
[ 7.007364] RSP: 002b:00007ffed5d46760 EFLAGS: 00000202 ORIG_RAX: 000000000000002e
[ 7.007827] RAX: ffffffffffffffda RBX: 00007ec756cc4740 RCX: 00007ec756d4e407
[ 7.008223] RDX: 0000000000000000 RSI: 00007ffed5d467f0 RDI: 0000000000000003
[ 7.008620] RBP: 00007ffed5d468a0 R08: 0000000000000000 R09: 0000000000000000
[ 7.009039] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
[ 7.009429] R13: 00007ffed5d478b0 R14: 00007ec756ee5000 R15: 00005cbd4e655cb8
Fix this bug with correct pointer addition and conversion in parse
and dump code.
Upgrade path
16 packages: 11 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| azure linux kernel(Azure Linux 3.0) | < 6.6.92.2-1 | 6.6.92.2-1 | Fixed |
| cbl-mariner kernel(CBL-Mariner 2.0) | < 5.15.180.1-1 | 5.15.180.1-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.135-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +34 more | 6.1.135-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.25-1 | 6.12.25-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.25-1 | 6.12.25-1 | Fixed |
| Linux kernel | < 5.10.236; < 5.15.180; < 6.1.134; < 6.6.87 +20 more | 0a93a710d6df334b828ea064c6d39fda34f901dc, 1b755d8eb1ace3870789d48fbd94f386ad6e30be, 5.10.236, 5.15.180, 6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2, 6.15, 28d88ee1e1cc8ac2d79aeb112717b97c5c833d43, 31d49eb436f2da61280508d7adf8c9b473b967aa, 446d94898c560ed2f61e26ae445858a4c4830762, 708e268acb3a446ad2a8a3d2e9bd41cc23660cd6, a263d31c8c92e5919d41af57d9479cfb66323782, ca2adfc03cd6273f0b589fe65afc6f75e0fe116e | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-142.152 | 5.15.0-142.152 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-86.87 | 6.8.0-86.87 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1082.87 | 5.15.0-1082.87 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1080.83 | 5.15.0-1080.83 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1041.45 | 6.8.0-1041.45 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner kernel(CBL-Mariner:2.0) | < 5.15.180.1-1 | 5.15.180.1-1 |
| azure linux kernel(Azure Linux:3.0) | < 6.6.92.2-1 | 6.6.92.2-1 |
| debian/linux(Debian:12) | < 6.1.135-1 | 6.1.135-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
Show 56 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.25-1 | 6.12.25-1 |
| debian/linux(Debian:14) | < 6.12.25-1 | 6.12.25-1 |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < 31d49eb436f2da61280508d7adf8c9b473b967aa | 31d49eb436f2da61280508d7adf8c9b473b967aa |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < ca2adfc03cd6273f0b589fe65afc6f75e0fe116e | ca2adfc03cd6273f0b589fe65afc6f75e0fe116e |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < a263d31c8c92e5919d41af57d9479cfb66323782 | a263d31c8c92e5919d41af57d9479cfb66323782 |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < 28d88ee1e1cc8ac2d79aeb112717b97c5c833d43 | 28d88ee1e1cc8ac2d79aeb112717b97c5c833d43 |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < 0a93a710d6df334b828ea064c6d39fda34f901dc | 0a93a710d6df334b828ea064c6d39fda34f901dc |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < 446d94898c560ed2f61e26ae445858a4c4830762 | 446d94898c560ed2f61e26ae445858a4c4830762 |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < 708e268acb3a446ad2a8a3d2e9bd41cc23660cd6 | 708e268acb3a446ad2a8a3d2e9bd41cc23660cd6 |
| Linux kernel | >= 925d844696d9287f841d6b3e0ed62a35fb175970, < 1b755d8eb1ace3870789d48fbd94f386ad6e30be | 1b755d8eb1ace3870789d48fbd94f386ad6e30be |
| Linux kernel | = 5.7 | No fix listed |
| Linux kernel | < 5.10.236 | 5.10.236 |
| Linux kernel | < 5.15.180 | 5.15.180 |
| Linux kernel | < 6.1.134 | 6.1.134 |
| Linux kernel | < 6.6.87 | 6.6.87 |
| Linux kernel | < 6.12.23 | 6.12.23 |
| Linux kernel | < 6.13.11 | 6.13.11 |
| Linux kernel | < 6.14.2 | 6.14.2 |
| Linux kernel | < 6.15 | 6.15 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.6 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-142.152 | 5.15.0-142.152 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1082.87 | 5.15.0-1082.87 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1080.83 | 5.15.0-1080.83 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-86.87 | 6.8.0-86.87 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1041.45 | 6.8.0-1041.45 |
| Linux kernel | >= 5.7, < 5.10.236 | 5.10.236 |
| Linux kernel | >= 5.11, < 5.15.180 | 5.15.180 |
| Linux kernel | >= 5.16, < 6.1.134 | 6.1.134 |
| Linux kernel | >= 6.2, < 6.6.87 | 6.6.87 |
| Linux kernel | >= 6.7, < 6.12.23 | 6.12.23 |
| Linux kernel | >= 6.13, < 6.13.11 | 6.13.11 |
| Linux kernel | >= 6.14, < 6.14.2 | 6.14.2 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-22056 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- lists.debian.org
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-7591-1 vendor-advisory
- USN-7591-2 vendor-advisory
- USN-7591-3 vendor-advisory
- USN-7592-1 vendor-advisory
- USN-7593-1 vendor-advisory
- USN-7594-1 vendor-advisory
- USN-7591-4 vendor-advisory
- USN-7597-1 vendor-advisory
- USN-7597-2 vendor-advisory
- USN-7598-1 vendor-advisory
- USN-7594-2 vendor-advisory
- USN-7602-1 vendor-advisory
- USN-7605-1 vendor-advisory
- USN-7606-1 vendor-advisory
- USN-7591-5 vendor-advisory
- USN-7605-2 vendor-advisory
- USN-7594-3 vendor-advisory
- USN-7628-1 vendor-advisory
- USN-7591-6 vendor-advisory
- USN-7655-1 vendor-advisory
- USN-7835-1 vendor-advisory
- USN-7835-2 vendor-advisory
- USN-7835-3 vendor-advisory
- USN-7835-4 vendor-advisory
- USN-7835-5 vendor-advisory
- USN-7835-6 vendor-advisory
- USN-7887-1 vendor-advisory
- USN-7887-2 vendor-advisory
- USN-7940-1 vendor-advisory
- USN-7940-2 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-11242 third-party-advisory