Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-47009
HistoryFeb 28, 2024 - 8:13 a.m.

CVE-2021-47009 KEYS: trusted: Fix memory leak on object td

2024-02-2808:13:28
Linux
github.com
6
linux kernel
vulnerability
memory leak
keys trusted

AI Score

6.8

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

KEYS: trusted: Fix memory leak on object td

Two error return paths are neglecting to free allocated object td,
causing a memory leak. Fix this by returning via the error return
path that securely kfree’s td.

Fixes clang scan-build warning:
security/keys/trusted-keys/trusted_tpm1.c:496:10: warning: Potential
memory leak [unix.Malloc]

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "9d83cc1a1e7f",
        "lessThan": "31c9a4b24d86",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8cfc8d629421",
        "lessThan": "1c4031014106",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5df16caada3f",
        "lessThan": "3e24fbd37e72",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5df16caada3f",
        "lessThan": "83a775d5f9bf",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "security/keys/trusted-keys/trusted_tpm1.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.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.12",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.10.38",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.11.22",
        "versionType": "custom",
        "lessThanOrEqual": "5.11.*"
      },
      {
        "status": "unaffected",
        "version": "5.12.5",
        "versionType": "custom",
        "lessThanOrEqual": "5.12.*"
      },
      {
        "status": "unaffected",
        "version": "5.13",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "security/keys/trusted-keys/trusted_tpm1.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.8

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial