Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-35808
HistoryMay 17, 2024 - 1:23 p.m.

CVE-2024-35808 md/dm-raid: don't call md_reap_sync_thread() directly

2024-05-1713:23:15
Linux
github.com
6
linux kernel
vulnerability
md/dm-raid
fix
reconfig_mutex
deadlock
sync_thread
cve

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

md/dm-raid: don’t call md_reap_sync_thread() directly

Currently md_reap_sync_thread() is called from raid_message() directly
without holding ‘reconfig_mutex’, this is definitely unsafe because
md_reap_sync_thread() can change many fields that is protected by
‘reconfig_mutex’.

However, hold ‘reconfig_mutex’ here is still problematic because this
will cause deadlock, for example, commit 130443d60b1b (“md: refactor
idle/frozen_sync_thread() to fix deadlock”).

Fix this problem by using stop_sync_thread() to unregister sync_thread,
like md/raid did.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "be83651f0050",
        "lessThan": "347dcdc15a17",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be83651f0050",
        "lessThan": "9e59b8d76ff5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be83651f0050",
        "lessThan": "cd32b27a66db",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/md/dm-raid.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.10",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.7.12",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.3",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/md/dm-raid.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial