crypto: bcm - add error check in the ahash_hmac_init function
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.325, 5.10.231, 5.15.174, 5.4.287, 6.1.120, 6.11.11, 6.12.2, 6.6.64
- CVEs
- CVE-2024-56681
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:36 UTC · Revision 1
Source evidence
crypto: bcm - add error check in the ahash_hmac_init function
core-osv · Original sourcePublished 28 Dec 2024, 09:46 UTC
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.
osv:CVE-2024-56681
Kernel
Fixed versions: 4.19.325, 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.64, 6.11.11, 6.12.2
Complete source record
{
"id": "66cb2a7097e065e27a462508c2e597d08eaa6c28f36570b57a1fdc5257334d1b",
"url": "https://osv.dev/vulnerability/CVE-2024-56681",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "crypto: bcm - add error check in the ahash_hmac_init function",
"summary": "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.",
"evidence": "osv:CVE-2024-56681",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.325",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.287",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.231",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.174",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.120",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.64",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-56681",
"aliases": [
"CVE-2024-56681"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9d12ba86f818aa9cfe9f01b750336aa441f2ffa2"
},
{
"fixed": "8f1a9a960b1107bd0e0ec3736055f5ed0e717edf"
},
{
"fixed": "75e1e38e5d80d6d9011b7322698ffba3dd3db30a"
},
{
"fixed": "28f8ffa945f7d7150463e15097ea73b19529d6f5"
},
{
"fixed": "4ea3e3b761e371102bb1486778e2f8dbc9e37413"
},
{
"fixed": "05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc"
},
{
"fixed": "ae5253313e0ea5f00c06176074592b7f493c8546"
},
{
"fixed": "ee36db8e8203420e6d5c42eb9428920c2fc36532"
},
{
"fixed": "bba9e38c5ad41d0a88b22a59e5b6dd3e31825118"
},
{
"fixed": "19630cf57233e845b6ac57c9c969a4888925467b"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56681.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.11.0"
},
{
"fixed": "4.19.325"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.287"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.231"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.174"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.120"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.64"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.11"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.12.0"
},
{
"fixed": "6.12.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56681.json"
}
}
],
"modified": "2026-10-28T02:30:30.600850539Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc",
"https://git.kernel.org/stable/c/19630cf57233e845b6ac57c9c969a4888925467b",
"https://git.kernel.org/stable/c/28f8ffa945f7d7150463e15097ea73b19529d6f5",
"https://git.kernel.org/stable/c/4ea3e3b761e371102bb1486778e2f8dbc9e37413",
"https://git.kernel.org/stable/c/75e1e38e5d80d6d9011b7322698ffba3dd3db30a",
"https://git.kernel.org/stable/c/8f1a9a960b1107bd0e0ec3736055f5ed0e717edf",
"https://git.kernel.org/stable/c/ae5253313e0ea5f00c06176074592b7f493c8546",
"https://git.kernel.org/stable/c/bba9e38c5ad41d0a88b22a59e5b6dd3e31825118",
"https://git.kernel.org/stable/c/ee36db8e8203420e6d5c42eb9428920c2fc36532",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56681.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-56681",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56681.json"
}
},
"related_cves": [
{
"value": "CVE-2024-56681",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497447,
"published_at": "2024-12-28T09:46:09.675+00:00"
}