{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-22110", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-12-29T08:45:45.820Z", "datePublished": "2025-04-16T14:12:57.061Z", "dateUpdated": "2026-08-05T11:56:50.656Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:56:50.656Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error\n\nIt is possible that ctx in nfqnl_build_packet_message() could be used\nbefore it is properly initialize, which is only initialized\nby nfqnl_get_sk_secctx().\n\nThis patch corrects this problem by initializing the lsmctx to a safe\nvalue when it is declared.\n\nThis is similar to the commit 35fcac7a7c25\n(\"audit: Initialize lsmctx to avoid memory allocation error\")." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL" }, "scenarios": [ { "lang": "en", "value": "AV:N - The uninitialized `lsm_context` is consumed in `nfqnl_build_packet_message()`, which runs in the softirq packet-receive path for every packet hitting an NFQUEUE verdict (`nf_hook_slow` → `nf_queue` → `nfqnl_enqueue_packet`). On an internet-facing host running an inline NFQUEUE-based IPS (Suricata/Snort IPS mode), remote packets alone drive the vulnerable code.\nAC:L - The uninitialized-memory use is unconditional and deterministic — it fires on every queued packet with no crafting required — and the attacker can repeat it millions of times while shaping the underlying stack through the preceding IP/conntrack/netfilter processing of their own packets.\nPR:N - In the inline-IPS deployment the remote attacker needs no credentials whatsoever; merely sending traffic to the host executes the vulnerable code. Even in the purely local model, the `NFQUEUE` rule and nfnetlink queue socket are gated only by `netlink_net_capable(CAP_NET_ADMIN)`/`ns_capable()`, which any unprivileged user obtains via `unshare -Urn`.\nUI:N - No victim action is required — the flaw triggers automatically during kernel packet processing as soon as traffic traverses the NFQUEUE rule.\nS:U - The invalid free and resulting slab corruption occur entirely within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Uninitialized stack memory is interpreted as a pointer and length, and the resulting wild `kfree()` yields slab corruption that can be groomed into an arbitrary-read primitive, so treat as high per use-after-free/uninitialized-memory guidance.\nI:H - `selinux_release_secctx()`/`apparmor_release_secctx()` call `kfree()` on an attacker-influenceable stale stack value, giving an arbitrary-free primitive that corrupts the slab allocator and is a well-established route to arbitrary write and control-flow hijack.\nA:H - Freeing a bogus pointer triggers slab metadata corruption, `BUG_ON`/oops, or panic, and the path is reached on every queued packet so it can be driven repeatedly until the kernel dies." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/netfilter/nfnetlink_queue.c" ], "versions": [ { "version": "2d470c778120d3cdb8d8ab250329ca85f49f12b1", "lessThan": "ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759", "status": "affected", "versionType": "git" }, { "version": "2d470c778120d3cdb8d8ab250329ca85f49f12b1", "lessThan": "778b09d91baafb13408470c721d034d6515cfa5a", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/netfilter/nfnetlink_queue.c" ], "versions": [ { "version": "6.14", "status": "affected" }, { "version": "0", "lessThan": "6.14", "status": "unaffected", "versionType": "semver" }, { "version": "6.14.2", "lessThanOrEqual": "6.14.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.15", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.14", "versionEndExcluding": "6.14.2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.14", "versionEndExcluding": "6.15" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759" }, { "url": "https://git.kernel.org/stable/c/778b09d91baafb13408470c721d034d6515cfa5a" } ], "title": "netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error", "x_generator": { "engine": "bippy-1.2.0" } } } }