{"id":"AZL-116764","summary":"CVE-2026-138829 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth token\n\nhp_calculate_security_buffer() special-cases an empty authentication\nstring and returns a fixed 4 bytes (sizeof(u16) * 2). But\nhp_populate_security_buffer() does not special-case that same input:\nfor any authentication string that does not start with BEAM_PREFIX,\nincluding the empty string, it always builds \"UTF_PREFIX +\nauthentication\" and converts the result to UTF-16, writing a 2-byte\nlength header plus 2 bytes per character of \"\u003cutf-16/\u003e\" (9 characters),\n20 bytes total, regardless of how long \"authentication\" itself is.\n\nThe caller, hp_set_attribute(), sizes its kmalloc() buffer using\nhp_calculate_security_buffer()'s return value, so for an empty\nauthentication token it allocates 4 bytes for the security area but\nhp_populate_security_buffer() then writes 20 bytes into it, causing a\n16-byte heap buffer overflow.\n\nThe authentication token used here is the current admin/setup\npassword, which is an empty string by default until one is\nconfigured. Any write to a writable BIOS attribute while no admin\npassword has been set reaches this path.\n\nFix by removing the special-case early return for an empty string in\nhp_calculate_security_buffer(). The generic calculation that follows\nalready accounts for the UTF_PREFIX correctly, which naturally yields\nthe same 20 bytes that hp_populate_security_buffer() writes for an empty\nstring, avoiding duplicate logic for special cases.","modified":"2026-12-01T14:17:40.875407501Z","published":"2026-11-30T14:17:37Z","upstream":["CVE-2026-138829"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138829"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-116764.json"}}],"schema_version":"1.9.2"}