cve.bz

CVE-2025-22056 linux linux kernel: Out-of-bounds Write

7.8 highEPSS 0.3%Fix available

High (7.8) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
Assigned by
Linux (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-22056 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22056?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22056?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22056 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.7 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.236
Linux5.155.15.180
Linux6.16.1.134
Linux6.66.6.87
Linux6.126.12.23
Linux6.136.13.11
Linux6.146.14.2
Linuxlater releases6.15

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.237-1DLA-4178-1
Debian11linux-6.16.1.137-1~deb11u1DLA-4193-1
Debian12linux6.1.135-1DEBIAN-CVE-2025-22056 DSA-5907-1
Debian13, 14linux6.12.25-1DEBIAN-CVE-2025-22056
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-22056
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-22056
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-22056
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-142.152UBUNTU-CVE-2025-22056 USN-7591-1
Ubuntu22.04:LTSlinux-aws5.15.0-1086.93UBUNTU-CVE-2025-22056 USN-7591-4
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1041.43~22.04.1UBUNTU-CVE-2025-22056 USN-7835-6
Ubuntu22.04:LTSlinux-azure5.15.0-1091.100UBUNTU-CVE-2025-22056 USN-7597-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1041.47~22.04.1UBUNTU-CVE-2025-22056 USN-7835-1
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1091.100.1UBUNTU-CVE-2025-22056
Ubuntu22.04:LTSlinux-gcp5.15.0-1085.94UBUNTU-CVE-2025-22056 USN-7591-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1042.45~22.04.1UBUNTU-CVE-2025-22056 USN-7835-3
Ubuntu22.04:LTSlinux-gke, linux-oracle5.15.0-1083.89UBUNTU-CVE-2025-22056 USN-7591-1
104 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:10.1rv, perf, rtla and 87 more0:6.12.0-124.8.1.el10_1RHSA-2025:20095
Red Hatrhel_eus:9.6::appstreamrv, perf, rtla and 29 more0:5.14.0-570.96.1.el9_6RHSA-2026:4011
Red Hatrhel_eus:9.6::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.96.1.el9_6RHSA-2026:4011
Red Hatrhel_eus:9.6::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.96.1.el9_6RHSA-2026:4011
Red Hatrhel_eus:9.6::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.96.1.el9_6RHSA-2026:4011
Red Hatrhel_eus:9.6::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-570.96.1.el9_6RHSA-2026:4011
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.167.1SUSE-SU-2025:02262-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.53.1SUSE-SU-2025:02000-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.3.1SUSE-SU-2025:01951-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.167.1SUSE-SU-2025:02262-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.167.1.150400.24.84.1SUSE-SU-2025:02262-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.110.1SUSE-SU-2025:02173-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.110.1.150500.6.51.3SUSE-SU-2025:02173-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_411-150400.9.3.1SUSE-SU-2025:02262-1
SUSELinux Enterprise Live Patching 15 SP5kernel-default5.14.21-150500.55.110.1SUSE-SU-2025:02173-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_271-150500.11.7.1SUSE-SU-2025:02173-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_111-150600.1.3.2SUSE-SU-2025:01964-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_121-150600.13.3.1SUSE-SU-2025:02000-1
28 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.53.1SUSE-SU-2025:02000-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.40.1SUSE-SU-2025:01965-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.53.1.150600.12.24.1SUSE-SU-2025:02000-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.39.1SUSE-SU-2025:01964-1
AlmaLinux9rv, perf, rtla and 71 more5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux10rv, perf, rtla and 72 more6.12.0-124.8.1.el10_1ALSA-2025:20095
Rocky Linux9kernel0:5.14.0-611.5.1.el9_7RLSA-2025:20518
Rocky Linux10kernel0:6.12.0-124.8.1.el10_1RLSA-2025:20095
Azure Linux3kernel6.6.92.2-1AZL-61463
Alpaquita23linux-lts6.1.134-r0BELL-CVE-2025-22056
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-22056
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-22056

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The config param CONFIG_NFT_TUNNEL disabled before the latest version of the Red Hat Enterprise Linux 9, so actual only starting from 9.6. For the Red Hat Enterprise Linux 8 not affected.

Only local users with `CAP_NET_ADMIN` capability or root can trigger this issue.

On Red Hat Enterprise Linux, local unprivileged users can exploit unprivileged user namespaces (CONFIG_USER_NS) to grant themselves this capability.

The OpenShift Container Platform (OCP) control planes or master machines are based on Red Hat Enterprise Linux CoreOS (RHCOS) that consists primarily of RHEL components, therefore, it is also affected by this kernel vulnerability. A successful exploit needs necessary privileges (CAP_NET_ADMIN) and direct, local access. A local user in RHCOS is already a root with full permissions, hence existence of this vulnerability does not bring any value from the potential attacker perspective. From the OpenShift containers perspective, this vulnerability cannot be exploited as in OpenShift the cluster processes on the node are namespaced, which means that switching the namespace in the running OpenShift container will not bring necessary capabilities.

This means that for OpenShift, the impact of this vulnerability is Low.

Similar to the CVE-2023-32233 vulnerability, this has been explained in the following blog post as an example of a "Container escape vulnerability":

https://www.redhat.com/en/blog/containers-vulnerability-risk-assessment

Red Hat's mitigation

1. This flaw can be mitigated by preventing the affected netfilter module with the name nft_tunnel from being loaded. For instructions on how to blacklist a kernel module, please see https://access.redhat.com/solutions/41278.

2. If the module cannot be disabled, on non-containerized deployments of Red Hat Enterprise Linux, the mitigation is to disable user namespaces:

# echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf

# sysctl -p /etc/sysctl.d/userns.conf

On containerized deployments, such as Red Hat OpenShift Container Platform, do not use the second mitigation (disabling user namespaces) as the functionality is needed to be enabled. The first mitigation (blacklisting nf_tables) is still viable for containerized deployments, providing the environment is not using netfilter.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-124.8.1.el10_1Fixed 2025-11-11RHSA-2025:20095
Red Hat Enterprise Linux 9kernel-0:5.14.0-611.5.1.el9_7Fixed 2025-11-11RHSA-2025:20518
Red Hat Enterprise Linux 9.6 Extended Update Supportkernel-0:5.14.0-570.96.1.el9_6Fixed 2026-03-09RHSA-2026:4011
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-22056.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed
ICSA-26-209-04Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-07-14Critical ManufacturingSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.6, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.6, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.6 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON