CVE-2024-56681

Description

From CVE.org

In the Linux kernel, the following vulnerability has been resolved: crypto: bcm - add error check in the ahash_hmac_init function The ahash_init functions may return fails. The ahash_hmac_init should not return ok when ahash_init returns error. For an example, ahash_init will return -ENOMEM when allocation memory is error.

Statement

A low impact vulnerability was found in the Linux kernel Broadcom crypto driver. The ahash_hmac_init() function in drivers/crypto/bcm/cipher.c did not check the return value of ahash_init() and could report success even when initialization failed, for example when a memory allocation error causes ahash_init() to return -ENOMEM. Continuing with an incompletely initialized ahash/HMAC context could lead to a system crash or other denial of service within the crypto subsystem. Red Hat assessed the impact of this flaw as Low because it requires local access and only affects availability.

The kernel and kernel-rt packages in Red Hat Enterprise Linux 9 and Red Hat Enterprise Linux 10 are affected, and the fix is currently deferred in these releases. The residual risk is limited: a local user able to trigger the failing initialization path in the Broadcom crypto driver could cause a system crash or instability, with no confidentiality or integrity impact. Red Hat Enterprise Linux 6 and 7 Extended Lifecycle Support streams are not affected. The CVE.org record scores this issue as Important (CVSS 3.1 score of 7.8), which is higher than Red Hat's assessment; Red Hat's CVSS 3.1 score of 4.4 (Modererate) reflects the local attack vector, the privileges required, and the availability-only impact.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score4.45.57.8
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredHighLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityNoneNoneHigh
Integrity ImpactNoneNoneHigh
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Availability,Integrity

Technical Impact: Unexpected State; DoS: Crash, Exit, or Restart

An unexpected return value could place the system in a state that could lead to a crash or other unintended behaviors.

Frequently Asked Questions

Want to get errata notifications? Sign up here.