{
  "cveId": "CVE-2024-38613",
  "url": "https://patchblox.com/security/cve/CVE-2024-38613",
  "summary": "CVE-2024-38613 is fixed in 12 products on 1 platform, first by DEBIAN-CVE-2024-38613, released June 19, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  m68k: Fix spinlock race in kernel thread creatio...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  m68k: Fix spinlock race in kernel thread creation  Context switching does take care to retain the correct lock owner across the switch from \u0027prev\u0027 to \u0027next\u0027 tasks.  This does rely on interrupts remaining disabled for the entire duration of the switch.  This condition is guaranteed for normal process creation and context switching between already running processes, because both \u0027prev\u0027 and \u0027next\u0027 already have interrupts disabled in their saved copies of the status register.  The situation is different for newly created kernel threads.  The status register is set to PS_S in copy_thread(), which does leave the IPL at 0. Upon restoring the \u0027next\u0027 thread\u0027s status register in switch_to() aka resume(), interrupts then become enabled prematurely.  resume() then returns via ret_from_kernel_thread() and schedule_tail() where run queue lock is released (see finish_task_switch() and finish_lock_switch()).  A timer interrupt calling scheduler_tick() before the lock is released in finish_task_switch() will find the lock already taken, with the current task as lock owner.  This causes a spinlock recursion warning as reported by Guenter Roeck.  As far as I can ascertain, this race has been opened in commit 533e6903bea0 (\u0022m68k: split ret_from_fork(), simplify kernel_thread()\u0022) but I haven\u0027t done a detailed study of kernel history so it may well predate that commit.  Interrupts cannot be disabled in the saved status register copy for kernel threads (init will complain about interrupts disabled when finally starting user space).  Disable interrupts temporarily when switching the tasks\u0027 register sets in resume().  Note that a simple oriw 0x700,%sr after restoring sr is not enough here - this leaves enough of a race for the \u0027spinlock recursion\u0027 warning to still be observed.  Tested on ARAnyM and qemu (Quadra 800 emulation).",
  "published": "2024-06-19T14:15:21Z",
  "severity": "medium",
  "cvss": 4.7,
  "cvssVector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00179,
  "epssPercentile": 0.07521,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "kernel-uek",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-container",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el8",
      "fix": "ELSA-2024-12584",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12584",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-container-debug",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el8",
      "fix": "ELSA-2024-12584",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12584",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-debug",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-debug-devel",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-devel",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-doc",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-tools",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "kernel-uek-tools-libs",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.1.94-1",
      "fix": "DEBIAN-CVE-2024-38613",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-38613",
      "released": "2024-06-19T14:15:21Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.8.12-1",
      "fix": "DEBIAN-CVE-2024-38613",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-38613",
      "released": "2024-06-19T14:15:21Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.8.12-1",
      "fix": "DEBIAN-CVE-2024-38613",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-38613",
      "released": "2024-06-19T14:15:21Z"
    },
    {
      "platform": "linux",
      "product": "perf",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "python-perf",
      "release": "ol 8",
      "fixedVersion": "0:5.4.17-2136.334.6.el7uek",
      "fix": "ELSA-2024-12581",
      "url": "https://patchblox.com/security/fix/linux/elsa-2024-12581",
      "released": "2024-08-12T00:00:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T01:18:40Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}