net: openvswitch: fix possible kfree_skb of ERR_PTR
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: fix possible kfree_skb of ERR_PTR After the patch in the "Fixes" tag, the allocation of the "reply" skb can happen either before or after locking the ovs_mutex. However, error cleanups still follow the classical reversed order, assuming "reply" is allocated before locking: it is freed after unlocking. If "reply" allocation happens after locking the mutex and it fails, "reply" is left with an ERR_PTR, and execution jumps to the correspondent cleanup stage which will try to free an invalid pointer. Fix this by setting the pointer to NULL after having saved its error value.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.259, 5.15.210, 6.1.176, 6.12.94, 6.18.36, 6.6.143, 7.0.13
- CVEs
- CVE-2026-53227
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 11:00 UTC · Revision 1
Source evidence
net: openvswitch: fix possible kfree_skb of ERR_PTR
core-osv · Original sourcePublished 25 Jun 2026, 08:39 UTC
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: fix possible kfree_skb of ERR_PTR After the patch in the "Fixes" tag, the allocation of the "reply" skb can happen either before or after locking the ovs_mutex. However, error cleanups still follow the classical reversed order, assuming "reply" is allocated before locking: it is freed after unlocking. If "reply" allocation happens after locking the mutex and it fails, "reply" is left with an ERR_PTR, and execution jumps to the correspondent cleanup stage which will try to free an invalid pointer. Fix this by setting the pointer to NULL after having saved its error value.
osv:CVE-2026-53227
Kernel
Fixed versions: 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13
Complete source record
{
"id": "110b68ff3472e4a44a9153301b80483a1a6596ce9b322d06c4beca3164ece3f4",
"url": "https://osv.dev/vulnerability/CVE-2026-53227",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: openvswitch: fix possible kfree_skb of ERR_PTR",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: fix possible kfree_skb of ERR_PTR After the patch in the \"Fixes\" tag, the allocation of the \"reply\" skb can happen either before or after locking the ovs_mutex. However, error cleanups still follow the classical reversed order, assuming \"reply\" is allocated before locking: it is freed after unlocking. If \"reply\" allocation happens after locking the mutex and it fails, \"reply\" is left with an ERR_PTR, and execution jumps to the correspondent cleanup stage which will try to free an invalid pointer. Fix this by setting the pointer to NULL after having saved its error value.",
"evidence": "osv:CVE-2026-53227",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.259",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.210",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.176",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.143",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.94",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.36",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.13",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-53227",
"aliases": [
"CVE-2026-53227"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "893f139b9a6c00c097b9082a90f3041cfb3a0d20"
},
{
"fixed": "e248fb2e680deb2bd37bac551b72638fe4938a76"
},
{
"fixed": "0bb5b2dc1b90aa7dd1473fc8c4d813a29255ff8d"
},
{
"fixed": "971b1b37774f13acc5add0a2843f8598446b8598"
},
{
"fixed": "25fdf53698535fe8790237f5a8a9626791429785"
},
{
"fixed": "e3d509a1b71396e1452060dbf84a805fd1c3c549"
},
{
"fixed": "ecc55aad3390129a87106841f4b68bf3d70c9264"
},
{
"fixed": "895d1dd9057cde1687fa0f4286d47ceed0b82997"
},
{
"fixed": "ee30dd2909d8b98619f4341c70ec8dc8e155ab02"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53227.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.16.0"
},
{
"fixed": "5.10.259"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.210"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.176"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.143"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.94"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.36"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.13"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53227.json"
}
}
],
"modified": "2026-10-28T02:30:43.963477899Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-784472.html",
"https://git.kernel.org/stable/c/0bb5b2dc1b90aa7dd1473fc8c4d813a29255ff8d",
"https://git.kernel.org/stable/c/25fdf53698535fe8790237f5a8a9626791429785",
"https://git.kernel.org/stable/c/895d1dd9057cde1687fa0f4286d47ceed0b82997",
"https://git.kernel.org/stable/c/971b1b37774f13acc5add0a2843f8598446b8598",
"https://git.kernel.org/stable/c/e248fb2e680deb2bd37bac551b72638fe4938a76",
"https://git.kernel.org/stable/c/e3d509a1b71396e1452060dbf84a805fd1c3c549",
"https://git.kernel.org/stable/c/ecc55aad3390129a87106841f4b68bf3d70c9264",
"https://git.kernel.org/stable/c/ee30dd2909d8b98619f4341c70ec8dc8e155ab02",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53227.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-53227",
"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/2026/53xxx/CVE-2026-53227.json"
}
},
"related_cves": [
{
"value": "CVE-2026-53227",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 511677,
"published_at": "2026-06-25T08:39:27.229+00:00"
}