{
  "cveId": "CVE-2022-49021",
  "url": "https://patchblox.com/security/cve/CVE-2022-49021",
  "summary": "CVE-2022-49021 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-49021, released October 21, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  net: phy: fix null-ptr-deref while probe() faile...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  net: phy: fix null-ptr-deref while probe() failed  I got a null-ptr-deref report as following when doing fault injection test:  BUG: kernel NULL pointer dereference, address: 0000000000000058 Oops: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 253 Comm: 507-spi-dm9051 Tainted: G    B            N 6.1.0-rc3\u002B Hardware name: QEMU Standard PC (i440FX \u002B PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 RIP: 0010:klist_put\u002B0x2d/0xd0 Call Trace:  \u003CTASK\u003E  klist_remove\u002B0xf1/0x1c0  device_release_driver_internal\u002B0x23e/0x2d0  bus_remove_device\u002B0x1bd/0x240  device_del\u002B0x357/0x770  phy_device_remove\u002B0x11/0x30  mdiobus_unregister\u002B0xa5/0x140  release_nodes\u002B0x6a/0xa0  devres_release_all\u002B0xf8/0x150  device_unbind_cleanup\u002B0x19/0xd0  //probe path: phy_device_register()   device_add()  phy_connect   phy_attach_direct() //set device driver     probe() //it\u0027s failed, driver is not bound     device_bind_driver() // probe failed, it\u0027s not called  //remove path: phy_device_remove()   device_del()     device_release_driver_internal()       __device_release_driver() //dev-\u003Edrv is not NULL         klist_remove() \u003C- knode_driver is not added yet, cause null-ptr-deref  In phy_attach_direct(), after setting the \u0027dev-\u003Edriver\u0027, probe() fails, device_bind_driver() is not called, so the knode_driver-\u003En_klist is not set, then it causes null-ptr-deref in __device_release_driver() while deleting device. Fix this by setting dev-\u003Edriver to NULL in the error path in phy_attach_direct().",
  "published": "2024-10-21T20:15:13Z",
  "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.00281,
  "epssPercentile": 0.20709,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.0.12-1",
      "fix": "DEBIAN-CVE-2022-49021",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49021",
      "released": "2024-10-21T20:15:13Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.0.12-1",
      "fix": "DEBIAN-CVE-2022-49021",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49021",
      "released": "2024-10-21T20:15:13Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.0.12-1",
      "fix": "DEBIAN-CVE-2022-49021",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49021",
      "released": "2024-10-21T20:15:13Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T19:12:23Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}