Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-46932
HistoryFeb 27, 2024 - 9:44 a.m.

CVE-2021-46932 Input: appletouch - initialize work before device registration

2024-02-2709:44:00
Linux
github.com
6
vulnerability
linux kernel
syzbot
__flush_work()
input_dev->close()
initialize work
device registration
patch

AI Score

6.7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

Input: appletouch - initialize work before device registration

Syzbot has reported warning in __flush_work(). This warning is caused by
work->func == NULL, which means missing work initialization.

This may happen, since input_dev->close() calls
cancel_work_sync(&dev->work), but dev->work initalization happens after
input_register_device() call.

So this patch moves dev->work initialization before registering input
device

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "d2cb2bf39a6d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "d1962f263a17",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "292d2ac61fb0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "a02e1404e278",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "975774ea7528",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "9f329d0d6c91",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "e79ff8c68acb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a6eb676d3bc",
        "lessThan": "9f3ccdc3f6ef",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/input/mouse/appletouch.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.23"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.23",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "4.4.298",
        "versionType": "custom",
        "lessThanOrEqual": "4.4.*"
      },
      {
        "status": "unaffected",
        "version": "4.9.296",
        "versionType": "custom",
        "lessThanOrEqual": "4.9.*"
      },
      {
        "status": "unaffected",
        "version": "4.14.261",
        "versionType": "custom",
        "lessThanOrEqual": "4.14.*"
      },
      {
        "status": "unaffected",
        "version": "4.19.224",
        "versionType": "custom",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.170",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.90",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.13",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "5.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/input/mouse/appletouch.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial