{
  "cveId": "CVE-2022-49505",
  "url": "https://patchblox.com/security/cve/CVE-2022-49505",
  "summary": "CVE-2022-49505 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-49505, released February 26, 2025. It is not reported as exploited. Patch Radar priority: High.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  NFC: NULL out the dev-\u003Erfkill to prevent UAF  Co...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  NFC: NULL out the dev-\u003Erfkill to prevent UAF  Commit 3e3b5dfcd16a (\u0022NFC: reorder the logic in nfc_{un,}register_device\u0022) assumes the device_is_registered() in function nfc_dev_up() will help to check when the rfkill is unregistered. However, this check only take effect when device_del(\u0026dev-\u003Edev) is done in nfc_unregister_device(). Hence, the rfkill object is still possible be dereferenced.  The crash trace in latest kernel (5.18-rc2):  [   68.760105] ================================================================== [   68.760330] BUG: KASAN: use-after-free in __lock_acquire\u002B0x3ec1/0x6750 [   68.760756] Read of size 8 at addr ffff888009c93018 by task fuzz/313 [   68.760756] [   68.760756] CPU: 0 PID: 313 Comm: fuzz Not tainted 5.18.0-rc2 #4 [   68.760756] Hardware name: QEMU Standard PC (i440FX \u002B PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [   68.760756] Call Trace: [   68.760756]  \u003CTASK\u003E [   68.760756]  dump_stack_lvl\u002B0x57/0x7d [   68.760756]  print_report.cold\u002B0x5e/0x5db [   68.760756]  ? __lock_acquire\u002B0x3ec1/0x6750 [   68.760756]  kasan_report\u002B0xbe/0x1c0 [   68.760756]  ? __lock_acquire\u002B0x3ec1/0x6750 [   68.760756]  __lock_acquire\u002B0x3ec1/0x6750 [   68.760756]  ? lockdep_hardirqs_on_prepare\u002B0x410/0x410 [   68.760756]  ? register_lock_class\u002B0x18d0/0x18d0 [   68.760756]  lock_acquire\u002B0x1ac/0x4f0 [   68.760756]  ? rfkill_blocked\u002B0xe/0x60 [   68.760756]  ? lockdep_hardirqs_on_prepare\u002B0x410/0x410 [   68.760756]  ? mutex_lock_io_nested\u002B0x12c0/0x12c0 [   68.760756]  ? nla_get_range_signed\u002B0x540/0x540 [   68.760756]  ? _raw_spin_lock_irqsave\u002B0x4e/0x50 [   68.760756]  _raw_spin_lock_irqsave\u002B0x39/0x50 [   68.760756]  ? rfkill_blocked\u002B0xe/0x60 [   68.760756]  rfkill_blocked\u002B0xe/0x60 [   68.760756]  nfc_dev_up\u002B0x84/0x260 [   68.760756]  nfc_genl_dev_up\u002B0x90/0xe0 [   68.760756]  genl_family_rcv_msg_doit\u002B0x1f4/0x2f0 [   68.760756]  ? genl_family_rcv_msg_attrs_parse.constprop.0\u002B0x230/0x230 [   68.760756]  ? security_capable\u002B0x51/0x90 [   68.760756]  genl_rcv_msg\u002B0x280/0x500 [   68.760756]  ? genl_get_cmd\u002B0x3c0/0x3c0 [   68.760756]  ? lock_acquire\u002B0x1ac/0x4f0 [   68.760756]  ? nfc_genl_dev_down\u002B0xe0/0xe0 [   68.760756]  ? lockdep_hardirqs_on_prepare\u002B0x410/0x410 [   68.760756]  netlink_rcv_skb\u002B0x11b/0x340 [   68.760756]  ? genl_get_cmd\u002B0x3c0/0x3c0 [   68.760756]  ? netlink_ack\u002B0x9c0/0x9c0 [   68.760756]  ? netlink_deliver_tap\u002B0x136/0xb00 [   68.760756]  genl_rcv\u002B0x1f/0x30 [   68.760756]  netlink_unicast\u002B0x430/0x710 [   68.760756]  ? memset\u002B0x20/0x40 [   68.760756]  ? netlink_attachskb\u002B0x740/0x740 [   68.760756]  ? __build_skb_around\u002B0x1f4/0x2a0 [   68.760756]  netlink_sendmsg\u002B0x75d/0xc00 [   68.760756]  ? netlink_unicast\u002B0x710/0x710 [   68.760756]  ? netlink_unicast\u002B0x710/0x710 [   68.760756]  sock_sendmsg\u002B0xdf/0x110 [   68.760756]  __sys_sendto\u002B0x19e/0x270 [   68.760756]  ? __ia32_sys_getpeername\u002B0xa0/0xa0 [   68.760756]  ? fd_install\u002B0x178/0x4c0 [   68.760756]  ? fd_install\u002B0x195/0x4c0 [   68.760756]  ? kernel_fpu_begin_mask\u002B0x1c0/0x1c0 [   68.760756]  __x64_sys_sendto\u002B0xd8/0x1b0 [   68.760756]  ? lockdep_hardirqs_on\u002B0xbf/0x130 [   68.760756]  ? syscall_enter_from_user_mode\u002B0x1d/0x50 [   68.760756]  do_syscall_64\u002B0x3b/0x90 [   68.760756]  entry_SYSCALL_64_after_hwframe\u002B0x44/0xae [   68.760756] RIP: 0033:0x7f67fb50e6b3 ... [   68.760756] RSP: 002b:00007f67fa91fe90 EFLAGS: 00000293 ORIG_RAX: 000000000000002c [   68.760756] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f67fb50e6b3 [   68.760756] RDX: 000000000000001c RSI: 0000559354603090 RDI: 0000000000000003 [   68.760756] RBP: 00007f67fa91ff00 R08: 00007f67fa91fedc R09: 000000000000000c [   68.760756] R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffe824d496e [   68.760756] R13: 00007ffe824d496f R14: 00007f67fa120000 R15: 0000000000000003  [   68.760756]  \u003C/TASK\u003E [   68.760756] [   68.760756] Allocated by task 279: [   68.760756]  kasan_save_stack\u002B0x1e/0x40 [ ---truncated---",
  "published": "2025-02-26T07:01:26Z",
  "severity": "high",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "epss": 0.00283,
  "epssPercentile": 0.20994,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "5.18.5-1",
      "fix": "DEBIAN-CVE-2022-49505",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49505",
      "released": "2025-02-26T07:01:26Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "5.18.5-1",
      "fix": "DEBIAN-CVE-2022-49505",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49505",
      "released": "2025-02-26T07:01:26Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "5.18.5-1",
      "fix": "DEBIAN-CVE-2022-49505",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-49505",
      "released": "2025-02-26T07:01:26Z"
    }
  ],
  "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"
  }
}