Lucene search

K
cvelistLinuxCVELIST:CVE-2024-44957
HistorySep 04, 2024 - 6:35 p.m.

CVE-2024-44957 xen: privcmd: Switch from mutex to spinlock for irqfds

2024-09-0418:35:55
Linux
www.cve.org
4
linux kernel
xen
privcmd
mutex
spinlock
irqfds
vulnerability fix
deadlock

EPSS

0

Percentile

5.1%

In the Linux kernel, the following vulnerability has been resolved:

xen: privcmd: Switch from mutex to spinlock for irqfds

irqfd_wakeup() gets EPOLLHUP, when it is called by
eventfd_release() by way of wake_up_poll(&ctx->wqh, EPOLLHUP), which
gets called under spin_lock_irqsave(). We can’t use a mutex here as it
will lead to a deadlock.

Fix it by switching over to a spin lock.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/xen/privcmd.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "c2775ae4d922",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "49f2a5da6785",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "1c682593096a",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/xen/privcmd.c"
    ],
    "versions": [
      {
        "version": "6.6.46",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.5",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.1%

Related for CVELIST:CVE-2024-44957