Skip to content
Heist/ feed
Back to feed
HighFix available

net: usb: lan78xx: Fix double free issue with interrupt buffer allocation

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.258, 5.15.209, 6.1.120, 6.11.11, 6.12.2, 6.6.64
CVEs
CVE-2024-53213
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 11:29 UTC · Revision 1

Source evidence

net: usb: lan78xx: Fix double free issue with interrupt buffer allocation

core-osv · Original source

Published 27 Dec 2024, 13:49 UTC

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.

osv:CVE-2024-53213

Kernel

Fixed versions: 5.10.258, 5.15.209, 6.1.120, 6.6.64, 6.11.11, 6.12.2

Complete source record
{
  "id": "d2a2e1d9d411c505f0ea79b0bd3c4080ecc699e0b52725d9d8fd51e5efe35271",
  "url": "https://osv.dev/vulnerability/CVE-2024-53213",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: usb: lan78xx: Fix double free issue with interrupt buffer allocation",
    "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.",
    "evidence": "osv:CVE-2024-53213",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.258",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.209",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-53213",
      "aliases": [
        "CVE-2024-53213"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3281ebb3dc5ef19507e65523e9f8c00e20b285ca"
                },
                {
                  "fixed": "cc5aa8e3ad69dcedeba79e667d4a2efb72a305af"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dcafa5a8452738eb28085f559b0683d55e22b2f5"
                },
                {
                  "fixed": "2970ef2fce90c661952ec2b451b0276d5f8d6180"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a6df95cae40bee555e01a37b4023ce8e97ffa249"
                },
                {
                  "fixed": "977128343fc2a30737399b58df8ea77e94f164bd"
                },
                {
                  "fixed": "a422ebec863d99d5607fb41bb7af3347fcb436d3"
                },
                {
                  "fixed": "b09512aea6223eec756f52aa584fc29eeab57480"
                },
                {
                  "fixed": "7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40"
                },
                {
                  "fixed": "03819abbeb11117dcbba40bfe322b88c0c88a6b6"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.10.252"
                },
                {
                  "fixed": "5.10.258"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.15.202"
                },
                {
                  "fixed": "5.15.209"
                }
              ]
            }
          ],
          "versions": [
            "v5.10.257",
            "v5.10.256",
            "v5.10.255",
            "v5.10.254",
            "v5.10.253",
            "v5.10.252",
            "v5.15.208",
            "v5.15.207",
            "v5.15.206",
            "v5.15.205",
            "v5.15.204",
            "v5.15.203",
            "v5.15.202"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53213.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.10.258"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.209"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "6.6.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.11.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53213.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.763681285Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/03819abbeb11117dcbba40bfe322b88c0c88a6b6",
        "https://git.kernel.org/stable/c/2970ef2fce90c661952ec2b451b0276d5f8d6180",
        "https://git.kernel.org/stable/c/7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40",
        "https://git.kernel.org/stable/c/977128343fc2a30737399b58df8ea77e94f164bd",
        "https://git.kernel.org/stable/c/a422ebec863d99d5607fb41bb7af3347fcb436d3",
        "https://git.kernel.org/stable/c/b09512aea6223eec756f52aa584fc29eeab57480",
        "https://git.kernel.org/stable/c/cc5aa8e3ad69dcedeba79e667d4a2efb72a305af",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53213.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-53213",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53213.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-53213",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519126,
  "published_at": "2024-12-27T13:49:58.709+00:00"
}