{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: amd_sfh: Fix memory leak in amd_sfh_work\n\nKmemleak tool detected a memory leak in the amd_sfh driver.\n\n====================\nunreferenced object 0xffff88810228ada0 (size 32):\n  comm \"insmod\", pid 3968, jiffies 4295056001 (age 775.792s)\n  hex dump (first 32 bytes):\n    00 20 73 1f 81 88 ff ff 00 01 00 00 00 00 ad de  . s.............\n    22 01 00 00 00 00 ad de 01 00 02 00 00 00 00 00  \"...............\n  backtrace:\n    [<000000007b4c8799>] kmem_cache_alloc_trace+0x163/0x4f0\n    [<0000000005326893>] amd_sfh_get_report+0xa4/0x1d0 [amd_sfh]\n    [<000000002a9e5ec4>] amdtp_hid_request+0x62/0x80 [amd_sfh]\n    [<00000000b8a95807>] sensor_hub_get_feature+0x145/0x270 [hid_sensor_hub]\n    [<00000000fda054ee>] hid_sensor_parse_common_attributes+0x215/0x460 [hid_sensor_iio_common]\n    [<0000000021279ecf>] hid_accel_3d_probe+0xff/0x4a0 [hid_sensor_accel_3d]\n    [<00000000915760ce>] platform_probe+0x6a/0xd0\n    [<0000000060258a1f>] really_probe+0x192/0x620\n    [<00000000fa812f2d>] driver_probe_device+0x14a/0x1d0\n    [<000000005e79f7fd>] __device_attach_driver+0xbd/0x110\n    [<0000000070d15018>] bus_for_each_drv+0xfd/0x160\n    [<0000000013a3c312>] __device_attach+0x18b/0x220\n    [<000000008c7b4afc>] device_initial_probe+0x13/0x20\n    [<00000000e6e99665>] bus_probe_device+0xfe/0x120\n    [<00000000833fa90b>] device_add+0x6a6/0xe00\n    [<00000000fa901078>] platform_device_add+0x180/0x380\n====================\n\nThe fix is to freeing request_list entry once the processed entry is\nremoved from the request_list."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/hid/amd-sfh-hid/amd_sfh_client.c"
               ],
               "versions": [
                  {
                     "version": "4b2c53d93a4b",
                     "lessThan": "29beadea66a2",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "4b2c53d93a4b",
                     "lessThan": "5ad755fd2b32",
                     "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/hid/amd-sfh-hid/amd_sfh_client.c"
               ],
               "versions": [
                  {
                     "version": "5.11",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "5.11",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.12.10",
                     "lessThanOrEqual": "5.12.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.13",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/29beadea66a226d744d5ffdcde6b984623053d24"
            },
            {
               "url": "https://git.kernel.org/stable/c/5ad755fd2b326aa2bc8910b0eb351ee6aece21b1"
            }
         ],
         "title": "HID: amd_sfh: Fix memory leak in amd_sfh_work",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2021-47133",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
