Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47098
HistoryMar 04, 2024 - 6:10 p.m.

CVE-2021-47098 hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations

2024-03-0418:10:50
Linux
www.cve.org
linux kernel
hwmon
lm90
integer overflow
underflow
hysteresis calculations
temperature limits
clamp_val

0.0004 Low

EPSS

Percentile

9.1%

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

hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations

Commit b50aa49638c7 (“hwmon: (lm90) Prevent integer underflows of
temperature calculations”) addressed a number of underflow situations
when writing temperature limits. However, it missed one situation, seen
when an attempt is made to set the hysteresis value to MAX_LONG and the
critical temperature limit is negative.

Use clamp_val() when setting the hysteresis temperature to ensure that
the provided value can never overflow or underflow.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/hwmon/lm90.c"
    ],
    "versions": [
      {
        "version": "b50aa49638c7",
        "lessThan": "d105f30bea91",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b50aa49638c7",
        "lessThan": "55840b9eae53",
        "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/hwmon/lm90.c"
    ],
    "versions": [
      {
        "version": "5.14",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.14",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.12",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

9.1%