{
  "cveId": "CVE-2024-46765",
  "url": "https://patchblox.com/security/cve/CVE-2024-46765",
  "summary": "CVE-2024-46765 is fixed in 26 products on 1 platform, first by DEBIAN-CVE-2024-46765, released September 18, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "ice: protect XDP configuration with a mutex",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  ice: protect XDP configuration with a mutex  The main threat to data consistency in ice_xdp() is a possible asynchronous PF reset. It can be triggered by a user or by TX timeout handler.  XDP setup and PF reset code access the same resources in the following sections: * ice_vsi_close() in ice_prepare_for_reset() - already rtnl-locked * ice_vsi_rebuild() for the PF VSI - not protected * ice_vsi_open() - already rtnl-locked  With an unfortunate timing, such accesses can result in a crash such as the one below:  [ \u002B1.999878] ice 0000:b1:00.0: Registered XDP mem model MEM_TYPE_XSK_BUFF_POOL on Rx ring 14 [ \u002B2.002992] ice 0000:b1:00.0: Registered XDP mem model MEM_TYPE_XSK_BUFF_POOL on Rx ring 18 [Mar15 18:17] ice 0000:b1:00.0 ens801f0np0: NETDEV WATCHDOG: CPU: 38: transmit queue 14 timed out 80692736 ms [ \u002B0.000093] ice 0000:b1:00.0 ens801f0np0: tx_timeout: VSI_num: 6, Q 14, NTC: 0x0, HW_HEAD: 0x0, NTU: 0x0, INT: 0x4000001 [ \u002B0.000012] ice 0000:b1:00.0 ens801f0np0: tx_timeout recovery level 1, txqueue 14 [ \u002B0.394718] ice 0000:b1:00.0: PTP reset successful [ \u002B0.006184] BUG: kernel NULL pointer dereference, address: 0000000000000098 [ \u002B0.000045] #PF: supervisor read access in kernel mode [ \u002B0.000023] #PF: error_code(0x0000) - not-present page [ \u002B0.000023] PGD 0 P4D 0 [ \u002B0.000018] Oops: 0000 [#1] PREEMPT SMP NOPTI [ \u002B0.000023] CPU: 38 PID: 7540 Comm: kworker/38:1 Not tainted 6.8.0-rc7 #1 [ \u002B0.000031] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0014.082620210524 08/26/2021 [ \u002B0.000036] Workqueue: ice ice_service_task [ice] [ \u002B0.000183] RIP: 0010:ice_clean_tx_ring\u002B0xa/0xd0 [ice] [...] [ \u002B0.000013] Call Trace: [ \u002B0.000016] \u003CTASK\u003E [ \u002B0.000014] ? __die\u002B0x1f/0x70 [ \u002B0.000029] ? page_fault_oops\u002B0x171/0x4f0 [ \u002B0.000029] ? schedule\u002B0x3b/0xd0 [ \u002B0.000027] ? exc_page_fault\u002B0x7b/0x180 [ \u002B0.000022] ? asm_exc_page_fault\u002B0x22/0x30 [ \u002B0.000031] ? ice_clean_tx_ring\u002B0xa/0xd0 [ice] [ \u002B0.000194] ice_free_tx_ring\u002B0xe/0x60 [ice] [ \u002B0.000186] ice_destroy_xdp_rings\u002B0x157/0x310 [ice] [ \u002B0.000151] ice_vsi_decfg\u002B0x53/0xe0 [ice] [ \u002B0.000180] ice_vsi_rebuild\u002B0x239/0x540 [ice] [ \u002B0.000186] ice_vsi_rebuild_by_type\u002B0x76/0x180 [ice] [ \u002B0.000145] ice_rebuild\u002B0x18c/0x840 [ice] [ \u002B0.000145] ? delay_tsc\u002B0x4a/0xc0 [ \u002B0.000022] ? delay_tsc\u002B0x92/0xc0 [ \u002B0.000020] ice_do_reset\u002B0x140/0x180 [ice] [ \u002B0.000886] ice_service_task\u002B0x404/0x1030 [ice] [ \u002B0.000824] process_one_work\u002B0x171/0x340 [ \u002B0.000685] worker_thread\u002B0x277/0x3a0 [ \u002B0.000675] ? preempt_count_add\u002B0x6a/0xa0 [ \u002B0.000677] ? _raw_spin_lock_irqsave\u002B0x23/0x50 [ \u002B0.000679] ? __pfx_worker_thread\u002B0x10/0x10 [ \u002B0.000653] kthread\u002B0xf0/0x120 [ \u002B0.000635] ? __pfx_kthread\u002B0x10/0x10 [ \u002B0.000616] ret_from_fork\u002B0x2d/0x50 [ \u002B0.000612] ? __pfx_kthread\u002B0x10/0x10 [ \u002B0.000604] ret_from_fork_asm\u002B0x1b/0x30 [ \u002B0.000604] \u003C/TASK\u003E  The previous way of handling this through returning -EBUSY is not viable, particularly when destroying AF_XDP socket, because the kernel proceeds with removal anyway.  There is plenty of code between those calls and there is no need to create a large critical section that covers all of them, same as there is no need to protect ice_vsi_rebuild() with rtnl_lock().  Add xdp_state_lock mutex to protect ice_vsi_rebuild() and ice_xdp().  Leaving unprotected sections in between would result in two states that have to be considered: 1. when the VSI is closed, but not yet rebuild 2. when VSI is already rebuild, but not yet open  The latter case is actually already handled through !netif_running() case, we just need to adjust flag checking a little. The former one is not as trivial, because between ice_vsi_close() and ice_vsi_rebuild(), a lot of hardware interaction happens, this can make adding/deleting rings exit with an error. Luckily, VSI rebuild is pending and can apply new configuration for us in a managed fashion.  Therefore, add an additional VSI state flag ICE_VSI_REBUILD_PENDING to indicate that ice_x ---truncated---",
  "published": "2024-09-18T08:15:04Z",
  "severity": "Moderate",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "cwe": "NULL Pointer Dereference",
  "epss": 0.00244,
  "epssPercentile": 0.15689,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-46765",
  "fixes": [
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.12.coco15sp6.1",
      "fix": "SUSE-SU-2025:0289-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-0289-1",
      "released": "2025-01-29T16:11:29Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco_debug",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.12.coco15sp6.1",
      "fix": "SUSE-SU-2025:0289-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-0289-1",
      "released": "2025-01-29T16:11:29Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6-RT_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.1.3.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.5",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt_debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.12.coco15sp6.1",
      "fix": "SUSE-SU-2025:0289-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-0289-1",
      "released": "2025-01-29T16:11:29Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.12.coco15sp6.1",
      "fix": "SUSE-SU-2025:0289-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-0289-1",
      "released": "2025-01-29T16:11:29Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.10.11-1",
      "fix": "DEBIAN-CVE-2024-46765",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-46765",
      "released": "2024-09-18T08:15:04Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.10.11-1",
      "fix": "DEBIAN-CVE-2024-46765",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-46765",
      "released": "2024-09-18T08:15:04Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T13:31:49Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}