# CVE-2026-53227: net: openvswitch: fix possible kfree_skb of ERR_PTR

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-25T08:39:27.229Z
- Modified: 2026-11-06T17:18:14.973Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before e248fb2e680deb2bd37bac551b72638fe4938a76; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before 0bb5b2dc1b90aa7dd1473fc8c4d813a29255ff8d; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before 971b1b37774f13acc5add0a2843f8598446b8598; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before 25fdf53698535fe8790237f5a8a9626791429785; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before e3d509a1b71396e1452060dbf84a805fd1c3c549; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before ecc55aad3390129a87106841f4b68bf3d70c9264; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before 895d1dd9057cde1687fa0f4286d47ceed0b82997; from 893f139b9a6c00c097b9082a90f3041cfb3a0d20 before ee30dd2909d8b98619f4341c70ec8dc8e155ab02; 3.16 (not affected: before 3.16; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.94 up to 6.12.*; from 6.18.36 up to 6.18.*; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.16 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.94; from 6.13 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/e248fb2e680deb2bd37bac551b72638fe4938a76> (patch)
- <https://git.kernel.org/stable/c/0bb5b2dc1b90aa7dd1473fc8c4d813a29255ff8d> (patch)
- <https://git.kernel.org/stable/c/971b1b37774f13acc5add0a2843f8598446b8598> (patch)
- <https://git.kernel.org/stable/c/25fdf53698535fe8790237f5a8a9626791429785> (patch)
- <https://git.kernel.org/stable/c/e3d509a1b71396e1452060dbf84a805fd1c3c549> (patch)
- <https://git.kernel.org/stable/c/ecc55aad3390129a87106841f4b68bf3d70c9264> (patch)
- <https://git.kernel.org/stable/c/895d1dd9057cde1687fa0f4286d47ceed0b82997> (patch)
- <https://git.kernel.org/stable/c/ee30dd2909d8b98619f4341c70ec8dc8e155ab02> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2026-53227](https://www.cve.org/CVERecord?id=CVE-2026-53227), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-53227](https://nvd.nist.gov/vuln/detail/CVE-2026-53227), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-53227 · Whole record: https://cve.day/CVE-2026-53227.json · Rebuilt by cve.day 2026-11-25T22:59:26.322Z
