CVE-2024-53213
Vulnerability from cvelistv5
Published
2024-12-27 13:49
Modified
2024-12-27 13:49
Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
net: usb: lan78xx: Fix double free issue with interrupt buffer allocation
In lan78xx_probe(), the buffer `buf` was being freed twice: once
implicitly through `usb_free_urb(dev->urb_intr)` with the
`URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused
a double free issue.
To resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to
simplify the initialization sequence and removed the redundant
`kfree(buf)`. Now, `buf` is allocated after `usb_alloc_urb()`, ensuring
it is correctly managed by `usb_fill_int_urb()` and freed by
`usb_free_urb()` as intended.
References
Impacted products
Vendor | Product | Version | |||||
---|---|---|---|---|---|---|---|
▼ | Linux | Linux |
Version: a6df95cae40bee555e01a37b4023ce8e97ffa249 Version: a6df95cae40bee555e01a37b4023ce8e97ffa249 Version: a6df95cae40bee555e01a37b4023ce8e97ffa249 Version: a6df95cae40bee555e01a37b4023ce8e97ffa249 Version: a6df95cae40bee555e01a37b4023ce8e97ffa249 |
||||
|
{ "containers": { "cna": { "affected": [ { "defaultStatus": "unaffected", "product": "Linux", "programFiles": [ "drivers/net/usb/lan78xx.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "lessThan": "977128343fc2a30737399b58df8ea77e94f164bd", "status": "affected", "version": "a6df95cae40bee555e01a37b4023ce8e97ffa249", "versionType": "git" }, { "lessThan": "a422ebec863d99d5607fb41bb7af3347fcb436d3", "status": "affected", "version": "a6df95cae40bee555e01a37b4023ce8e97ffa249", "versionType": "git" }, { "lessThan": "b09512aea6223eec756f52aa584fc29eeab57480", "status": "affected", "version": "a6df95cae40bee555e01a37b4023ce8e97ffa249", "versionType": "git" }, { "lessThan": "7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40", "status": "affected", "version": "a6df95cae40bee555e01a37b4023ce8e97ffa249", "versionType": "git" }, { "lessThan": "03819abbeb11117dcbba40bfe322b88c0c88a6b6", "status": "affected", "version": "a6df95cae40bee555e01a37b4023ce8e97ffa249", "versionType": "git" } ] }, { "defaultStatus": "affected", "product": "Linux", "programFiles": [ "drivers/net/usb/lan78xx.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "status": "affected", "version": "5.17" }, { "lessThan": "5.17", "status": "unaffected", "version": "0", "versionType": "semver" }, { "lessThanOrEqual": "6.1.*", "status": "unaffected", "version": "6.1.120", "versionType": "semver" }, { "lessThanOrEqual": "6.6.*", "status": "unaffected", "version": "6.6.64", "versionType": "semver" }, { "lessThanOrEqual": "6.11.*", "status": "unaffected", "version": "6.11.11", "versionType": "semver" }, { "lessThanOrEqual": "6.12.*", "status": "unaffected", "version": "6.12.2", "versionType": "semver" }, { "lessThanOrEqual": "*", "status": "unaffected", "version": "6.13-rc1", "versionType": "original_commit_for_fix" } ] } ], "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: lan78xx: Fix double free issue with interrupt buffer allocation\n\nIn lan78xx_probe(), the buffer `buf` was being freed twice: once\nimplicitly through `usb_free_urb(dev-\u003eurb_intr)` with the\n`URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused\na double free issue.\n\nTo resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to\nsimplify the initialization sequence and removed the redundant\n`kfree(buf)`. Now, `buf` is allocated after `usb_alloc_urb()`, ensuring\nit is correctly managed by `usb_fill_int_urb()` and freed by\n`usb_free_urb()` as intended." } ], "providerMetadata": { "dateUpdated": "2024-12-27T13:49:58.709Z", "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux" }, "references": [ { "url": "https://git.kernel.org/stable/c/977128343fc2a30737399b58df8ea77e94f164bd" }, { "url": "https://git.kernel.org/stable/c/a422ebec863d99d5607fb41bb7af3347fcb436d3" }, { "url": "https://git.kernel.org/stable/c/b09512aea6223eec756f52aa584fc29eeab57480" }, { "url": "https://git.kernel.org/stable/c/7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40" }, { "url": "https://git.kernel.org/stable/c/03819abbeb11117dcbba40bfe322b88c0c88a6b6" } ], "title": "net: usb: lan78xx: Fix double free issue with interrupt buffer allocation", "x_generator": { "engine": "bippy-5f407fcff5a0" } } }, "cveMetadata": { "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "assignerShortName": "Linux", "cveId": "CVE-2024-53213", "datePublished": "2024-12-27T13:49:58.709Z", "dateReserved": "2024-11-19T17:17:25.023Z", "dateUpdated": "2024-12-27T13:49:58.709Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2024-53213\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-12-27T14:15:29.237\",\"lastModified\":\"2024-12-27T14:15:29.237\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: usb: lan78xx: Fix double free issue with interrupt buffer allocation\\n\\nIn lan78xx_probe(), the buffer `buf` was being freed twice: once\\nimplicitly through `usb_free_urb(dev-\u003eurb_intr)` with the\\n`URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused\\na double free issue.\\n\\nTo resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to\\nsimplify the initialization sequence and removed the redundant\\n`kfree(buf)`. Now, `buf` is allocated after `usb_alloc_urb()`, ensuring\\nit is correctly managed by `usb_fill_int_urb()` and freed by\\n`usb_free_urb()` as intended.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/03819abbeb11117dcbba40bfe322b88c0c88a6b6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/977128343fc2a30737399b58df8ea77e94f164bd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a422ebec863d99d5607fb41bb7af3347fcb436d3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b09512aea6223eec756f52aa584fc29eeab57480\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}" } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.