Skip to content
Heist/ feed
High

HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections A report in 2019 by the syzbot fuzzer was found to be connected to two errors in the HID core associated with Resolution Multipliers. One of the errors was fixed by commit ea427a222d8b ("HID: core: Fix deadloop in hid_apply_multiplier."), but the other has not been fixed. This error arises because hid_apply_multipler() assumes that every Resolution Multiplier control is contained in a Logical Collection, i.e., there's no way the routine can ever set multiplier_collection to NULL. This is in spite of the fact that the function starts with a big comment saying: * "The Resolution Multiplier control must be contained in the same * Logical Collection as the control(s) to which it is to be applied. ... * If no Logical Collection is * defined, the Resolution Multiplier is associated with all * controls in the report." * HID Usage Table, v1.12, Section 4.3.1, p30 * * Thus, search from the current collection upwards until we find a * logical collection... The comment and the code overlook the possibility that none of the collections found may be a Logical Collection. The fix is to set the multiplier_collection pointer to NULL if the collection found isn't a Logical Collection.

Announced Group revision 1
Original source ↗

CVE-2024-57986

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-57986

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "3a002e4029230d9a6be89f869b2328b258612f5c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "05dd7d10675b540b8b7b31035c0a8abb6e6f3b88",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "a32ea3f982b389ea43a41ce77b6fb70d74006d9b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "bebf542e8d7c44a18a95f306b1b5dc160c823506",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "ed3d3883476423f337aac0f22c521819b3f1e970",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "ebaeca33d32c8bdb705a8c88267737a456f354b1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "a5498f1f864ea26f4c613c77f54409c776a95a90",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a4abb36f312cf83206b1b7d1308ba47cba0b3cc",
        "lessThan": "64f2657b579343cf923aa933f08074e6258eb07b",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/hid/hid-core.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.0"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.4.291",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.235",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.179",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.129",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.76",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.13",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13.2",
        "versionType": "semver",
        "lessThanOrEqual": "6.13.*"
      },
      {
        "status": "unaffected",
        "version": "6.14",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/hid/hid-core.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-57986

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#26858 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement