{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-42138","id":"CVE-2024-42138","title":"mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file\n\nIn case of invalid INI file mlxsw_linecard_types_init() deallocates memory\nbut doesn't reset pointer to NULL and returns 0. In case of any error\noccurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init()\ncalls mlxsw_linecard_types_fini","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file\n\nIn case of invalid INI file mlxsw_linecard_types_init() deallocates memory\nbut doesn't reset pointer to NULL and returns 0. In case of any error\noccurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init()\ncalls mlxsw_linecard_types_fini() which performs memory deallocation again.\n\nAdd pointer reset to NULL.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","published":"2024-07-30T07:46:32.611Z","updated":"2026-10-28T02:30:29.844587163Z","reserved":"2024-07-29T15:50:41.188Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","lessThan":"ab557f5cd993a3201b09593633d04b891263d5c0","status":"affected","versionType":"git"},{"version":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","lessThan":"f8b55a465b0e8a500179808166fe9420f5c091a1","status":"affected","versionType":"git"},{"version":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","lessThan":"9af7437669b72f804fc4269f487528dbbed142a2","status":"affected","versionType":"git"},{"version":"b217127e5e4ee0ecfce7c5f84cfe082238123bda","lessThan":"8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","status":"unaffected","versionType":"semver"},{"version":"6.1.98","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.39","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.9.9","lessThanOrEqual":"6.9.*","status":"unaffected","versionType":"semver"},{"version":"6.10","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3","tags":["x_transferred","Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42138.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42138","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00234,"epssPercentile":0.14486,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-42138","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42138","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-42138","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-42138","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}