Lucene search

K
cvelistLinuxCVELIST:CVE-2024-43830
HistoryAug 17, 2024 - 9:21 a.m.

CVE-2024-43830 leds: trigger: Unregister sysfs attributes before calling deactivate()

2024-08-1709:21:48
Linux
www.cve.org
1
linux kernel vulnerability
sysfs attributes
deactivate

EPSS

0

Percentile

13.7%

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

leds: trigger: Unregister sysfs attributes before calling deactivate()

Triggers which have trigger specific sysfs attributes typically store
related data in trigger-data allocated by the activate() callback and
freed by the deactivate() callback.

Calling device_remove_groups() after calling deactivate() leaves a window
where the sysfs attributes show/store functions could be called after
deactivation and then operate on the just freed trigger-data.

Move the device_remove_groups() call to before deactivate() to close
this race window.

This also makes the deactivation path properly do things in reverse order
of the activation path which calls the activate() callback before calling
device_add_groups().

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/leds/led-triggers.c"
    ],
    "versions": [
      {
        "version": "a7e7a3156300",
        "lessThan": "c3b7a650c871",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "d1415125b701",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "09c1583f0e10",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "3fb6a9d67cfd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "734ba6437e80",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "cb8aa9d2a4c8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "0788a6f3523d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a7e7a3156300",
        "lessThan": "c0dc9adf9474",
        "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/leds/led-triggers.c"
    ],
    "versions": [
      {
        "version": "4.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.320",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.282",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.224",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.165",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.103",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.44",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.3",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

13.7%