{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nInput: appletouch - initialize work before device registration\n\nSyzbot has reported warning in __flush_work(). This warning is caused by\nwork->func == NULL, which means missing work initialization.\n\nThis may happen, since input_dev->close() calls\ncancel_work_sync(&dev->work), but dev->work initalization happens _after_\ninput_register_device() call.\n\nSo this patch moves dev->work initialization before registering input\ndevice"
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/input/mouse/appletouch.c"
               ],
               "versions": [
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "d2cb2bf39a6d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "d1962f263a17",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "292d2ac61fb0",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "a02e1404e278",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "975774ea7528",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "9f329d0d6c91",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "e79ff8c68acb",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "5a6eb676d3bc",
                     "lessThan": "9f3ccdc3f6ef",
                     "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/input/mouse/appletouch.c"
               ],
               "versions": [
                  {
                     "version": "2.6.23",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.23",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.4.298",
                     "lessThanOrEqual": "4.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.9.296",
                     "lessThanOrEqual": "4.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.261",
                     "lessThanOrEqual": "4.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.224",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.170",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.90",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.13",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.16",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/d2cb2bf39a6d17ef4bdc0e59c1a35cf5751ad8f4"
            },
            {
               "url": "https://git.kernel.org/stable/c/d1962f263a176f493400b8f91bfbf2bfedce951e"
            },
            {
               "url": "https://git.kernel.org/stable/c/292d2ac61fb0d9276a0f7b7ce4f50426f2a1c99f"
            },
            {
               "url": "https://git.kernel.org/stable/c/a02e1404e27855089d2b0a0acc4652c2ce65fe46"
            },
            {
               "url": "https://git.kernel.org/stable/c/975774ea7528b489930b76a77ffc4d5379b95ff2"
            },
            {
               "url": "https://git.kernel.org/stable/c/9f329d0d6c91142cf0ad08d23c72dd195db2633c"
            },
            {
               "url": "https://git.kernel.org/stable/c/e79ff8c68acb1eddf709d3ac84716868f2a91012"
            },
            {
               "url": "https://git.kernel.org/stable/c/9f3ccdc3f6ef10084ceb3a47df0961bec6196fd0"
            }
         ],
         "title": "Input: appletouch - initialize work before device registration",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2021-46932",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
