An integer overflow existed in the wolfCrypt CMAC implementation, that could be exploited to forge CMAC tags. The function wcCmacUpdate used the guard if (cmac->totalSz != 0) to skip XOR-chaining on the first block (where digest is all-zeros and the XOR is a no-op). However, totalSz is word32 and wraps to zero after 2^28 block flushes (4 GiB), causing the guard to erroneously discard the live CBC-MAC chain state. Any two messages sharing a common suffix beyond the 4 GiB mark then produce identical CMAC tags, enabling a zero-work prefix-substitution forgery. The fix removes the guard, making the XOR unconditional; the no-op property on the first block is preserved because digest is zero-initialized by wcInitCmac_ex.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Analyzed"
},
"modified": "2026-06-17T10:59:06.143Z",
"published": "2026-04-10T06:16:05.243Z",
"imported": "2026-07-17T22:31:41.012Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-5477",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5477",
"id": "CVE-2026-5477"
},
{
"modified": "2026-04-27T18:33:06Z",
"published": "2026-04-10T06:31:38Z",
"imported": "2026-07-17T22:31:41.164Z",
"url": "https://api.github.com/advisories/GHSA-grqc-3vmg-p68x",
"html_url": "https://github.com/advisories/GHSA-grqc-3vmg-p68x",
"id": "GHSA-grqc-3vmg-p68x"
},
{
"modified": "2026-04-10T14:04:00Z",
"published": "2026-04-10T05:06:22Z",
"imported": "2026-07-17T22:31:51.078Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-21305",
"id": "EUVD-2026-21305",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-21305"
}
]
}