CVE-2024-27418

net: mctp: take ownership of skb in mctp_local_output

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: net: mctp: take ownership of skb in mctp_local_output Currently, mctp_local_output only takes ownership of skb on success, and we may leak an skb if mctp_local_output fails in specific states; the skb ownership isn't transferred until the actual output routing occurs. Instead, make mctp_local_output free the skb on all error paths up to the route action, so it always consumes the passed skb.

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 833ef3b91de692ef33b800bca6b1569c39dece74 < a3c8fa54e904b0ddb52a08cc2d8ac239054f61fd ; affected 833ef3b91de692ef33b800bca6b1569c39dece74 < cbebc55ceacef1fc0651e80e0103cc184552fc68 ; affected 833ef3b91de692ef33b800bca6b1569c39dece74 < a639441c880ac479495e5ab37e3c29f21ae5771b ; affected 833ef3b91de692ef33b800bca6b1569c39dece74 < 3773d65ae5154ed7df404b050fd7387a36ab5ef3
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 6.1.81 ≤ 6.1.* ; unaffected 6.6.21 ≤ 6.6.* ; unaffected 6.7.9 ≤ 6.7.* ; unaffected 6.8 ≤ *

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