netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error
In the Linux kernel, the following vulnerability has been resolved: netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error It is possible that ctx in nfqnl_build_packet_message() could be used before it is properly initialize, which is only initialized by nfqnl_get_sk_secctx(). This patch corrects this problem by initializing the lsmctx to a safe value when it is declared. This is similar to the commit 35fcac7a7c25 ("audit: Initialize lsmctx to avoid memory allocation error").
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.14.2
- CVEs
- CVE-2025-22110
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 00:39 UTC · Revision 1
Source evidence
netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error
core-osv · Original sourcePublished 16 Apr 2025, 14:12 UTC
In the Linux kernel, the following vulnerability has been resolved: netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error It is possible that ctx in nfqnl_build_packet_message() could be used before it is properly initialize, which is only initialized by nfqnl_get_sk_secctx(). This patch corrects this problem by initializing the lsmctx to a safe value when it is declared. This is similar to the commit 35fcac7a7c25 ("audit: Initialize lsmctx to avoid memory allocation error").
osv:CVE-2025-22110
Kernel
Fixed versions: 6.14.2
Complete source record
{
"id": "6d78970d7f3fc8a179979d8fbe0fc1f100d95744f3bb52d382e6545e49fe1d1c",
"url": "https://osv.dev/vulnerability/CVE-2025-22110",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error",
"summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error It is possible that ctx in nfqnl_build_packet_message() could be used before it is properly initialize, which is only initialized by nfqnl_get_sk_secctx(). This patch corrects this problem by initializing the lsmctx to a safe value when it is declared. This is similar to the commit 35fcac7a7c25 (\"audit: Initialize lsmctx to avoid memory allocation error\").",
"evidence": "osv:CVE-2025-22110",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.14.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2025-22110",
"aliases": [
"CVE-2025-22110"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2d470c778120d3cdb8d8ab250329ca85f49f12b1"
},
{
"fixed": "ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759"
},
{
"fixed": "778b09d91baafb13408470c721d034d6515cfa5a"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22110.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.14.0"
},
{
"fixed": "6.14.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22110.json"
}
}
],
"modified": "2026-10-28T02:30:45.506895535Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/778b09d91baafb13408470c721d034d6515cfa5a",
"https://git.kernel.org/stable/c/ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22110.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-22110",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22110.json"
}
},
"related_cves": [
{
"value": "CVE-2025-22110",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513562,
"published_at": "2025-04-16T14:12:57.061+00:00"
}