{
  "cveId": "CVE-2022-50545",
  "url": "https://patchblox.com/security/cve/CVE-2022-50545",
  "summary": "CVE-2022-50545 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-50545, released October 7, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  r6040: Fix kmemleak in probe and remove  There i...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  r6040: Fix kmemleak in probe and remove  There is a memory leaks reported by kmemleak:    unreferenced object 0xffff888116111000 (size 2048):     comm \u0022modprobe\u0022, pid 817, jiffies 4294759745 (age 76.502s)     hex dump (first 32 bytes):       00 c4 0a 04 81 88 ff ff 08 10 11 16 81 88 ff ff  ................       08 10 11 16 81 88 ff ff 00 00 00 00 00 00 00 00  ................     backtrace:       [\u003Cffffffff815bcd82\u003E] kmalloc_trace\u002B0x22/0x60       [\u003Cffffffff827e20ee\u003E] phy_device_create\u002B0x4e/0x90       [\u003Cffffffff827e6072\u003E] get_phy_device\u002B0xd2/0x220       [\u003Cffffffff827e7844\u003E] mdiobus_scan\u002B0xa4/0x2e0       [\u003Cffffffff827e8be2\u003E] __mdiobus_register\u002B0x482/0x8b0       [\u003Cffffffffa01f5d24\u003E] r6040_init_one\u002B0x714/0xd2c [r6040]       ...  The problem occurs in probe process as follows:   r6040_init_one:     mdiobus_register       mdiobus_scan    \u003C- alloc and register phy_device,                          the reference count of phy_device is 3     r6040_mii_probe       phy_connect     \u003C- connect to the first phy_device,                          so the reference count of the first                          phy_device is 4, others are 3     register_netdev   \u003C- fault inject succeeded, goto error handling path      // error handling path     err_out_mdio_unregister:       mdiobus_unregister(lp-\u003Emii_bus);     err_out_mdio:       mdiobus_free(lp-\u003Emii_bus);    \u003C- the reference count of the first                                        phy_device is 1, it is not released                                        and other phy_devices are released   // similarly, the remove process also has the same problem  The root cause is traced to the phy_device is not disconnected when removes one r6040 device in r6040_remove_one() or on error handling path after r6040_mii probed successfully. In r6040_mii_probe(), a net ethernet device is connected to the first PHY device of mii_bus, in order to notify the connected driver when the link status changes, which is the default behavior of the PHY infrastructure to handle everything. Therefore the phy_device should be disconnected when removes one r6040 device or on error handling path.  Fix it by adding phy_disconnect() when removes one r6040 device or on error handling path after r6040_mii probed successfully.",
  "published": "2025-10-07T16:15:38Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00213,
  "epssPercentile": 0.11671,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.1.4-1",
      "fix": "DEBIAN-CVE-2022-50545",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50545",
      "released": "2025-10-07T16:15:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.1.4-1",
      "fix": "DEBIAN-CVE-2022-50545",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50545",
      "released": "2025-10-07T16:15:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.1.4-1",
      "fix": "DEBIAN-CVE-2022-50545",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50545",
      "released": "2025-10-07T16:15:38Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}