CVE-2026-53227

net: openvswitch: fix possible kfree_skb of ERR_PTR

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 893f139b9a6c00c097b9082a90f3041cfb3a0d20 < e248fb2e680deb2bd37bac551b72638fe4938a76 ; affected 893f139b9a6c00c097b9082a90f3041cfb3a0d20 < 0bb5b2dc1b90aa7dd1473fc8c4d813a29255ff8d ; affected 893f139b9a6c00c097b9082a90f3041cfb3a0d20 < 971b1b37774f13acc5add0a2843f8598446b8598 ; affected 893f139b9a6c00c097b9082a90f3041cfb3a0d20 < 25fdf53698535fe8790237f5a8a9626791429785 ; affected 893f139b9a6c00c097b9082a90f3041cfb3a0d20 < e3d509a1b71396e1452060dbf84a805fd1c3c549 ; affected 893f139b9a6c00c097b9082a90f3041cfb3a0d20 < ecc55aad3390129a87106841f4b68bf3d70c9264
Linux · Linuxaffected 3.16 ; unaffected 0 < 3.16 ; unaffected 5.10.259 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD