ghsa-2hwq-42hc-rhqv
Vulnerability from github
Published
2024-12-27 15:31
Modified
2024-12-27 15:31
Details
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.
{ "affected": [], "aliases": [ "CVE-2024-53213" ], "database_specific": { "cwe_ids": [], "github_reviewed": false, "github_reviewed_at": null, "nvd_published_at": "2024-12-27T14:15:29Z", "severity": null }, "details": "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.", "id": "GHSA-2hwq-42hc-rhqv", "modified": "2024-12-27T15:31:52Z", "published": "2024-12-27T15:31:52Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-53213" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/03819abbeb11117dcbba40bfe322b88c0c88a6b6" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/977128343fc2a30737399b58df8ea77e94f164bd" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/a422ebec863d99d5607fb41bb7af3347fcb436d3" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/b09512aea6223eec756f52aa584fc29eeab57480" } ], "schema_version": "1.4.0", "severity": [] }
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.