CVE-2026-138829

Not scored yetLast modified Nov 30, 2026

Description

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

platform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth token

hp_calculate_security_buffer() special-cases an empty authentication string and returns a fixed 4 bytes (sizeof(u16) * 2). But hp_populate_security_buffer() does not special-case that same input: for any authentication string that does not start with BEAM_PREFIX, including the empty string, it always builds "UTF_PREFIX + authentication" and converts the result to UTF-16, writing a 2-byte length header plus 2 bytes per character of "<utf-16/>" (9 characters), 20 bytes total, regardless of how long "authentication" itself is.

The caller, hp_set_attribute(), sizes its kmalloc() buffer using hp_calculate_security_buffer()'s return value, so for an empty authentication token it allocates 4 bytes for the security area but hp_populate_security_buffer() then writes 20 bytes into it, causing a 16-byte heap buffer overflow.

The authentication token used here is the current admin/setup password, which is an empty string by default until one is configured. Any write to a writable BIOS attribute while no admin password has been set reaches this path.

Fix by removing the special-case early return for an empty string in hp_calculate_security_buffer(). The generic calculation that follows already accounts for the UTF_PREFIX correctly, which naturally yields the same 20 bytes that hp_populate_security_buffer() writes for an empty string, avoiding duplicate logic for special cases.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138839.6Type Confusion in ANGLE in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to potentially perform a sandbox escape via a crafCVE-2026-138830In the Linux kernel, the following vulnerability has been resolved: mm/shmem: don't release a swapin-error marker as a swap entry A failedCVE-2026-138831In the Linux kernel, the following vulnerability has been resolved: mm/shmem: report RCU-tasks quiescent states while undoing a range ThisCVE-2026-138832In the Linux kernel, the following vulnerability has been resolved: mm/madvise: reclaim isolated folios if PTE restart fails MADV_PAGEOUT CVE-2026-138833In the Linux kernel, the following vulnerability has been resolved: proc/task_mmu: handle special PMDs in clear_refs and pagemap mshv_vtl_CVE-2026-138834In the Linux kernel, the following vulnerability has been resolved: xprtrdma: trim head iovec when the payload arrives via a Write chunk TCVE-2026-138835In the Linux kernel, the following vulnerability has been resolved: arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO set_permissionsCVE-2026-138836In the Linux kernel, the following vulnerability has been resolved: ACPI: APEI: accumulate the queued flag across error sections ghes_do_pCVE-2026-138837In the Linux kernel, the following vulnerability has been resolved: dm-snapshot: fix crash if dm_io_client_create fails If dm_io_client_crCVE-2026-138838In the Linux kernel, the following vulnerability has been resolved: USB: serial: sierra: fix urb leak on write completion Make sure to droCVE-2026-1388398.8In the Linux kernel, the following vulnerability has been resolved: m68k: Fix seccomp filtering on ColdFire and 68000 m68k selects HAVE_ARCVE-2026-138848.8Integer overflow in Chromecast in Google Chrome prior to 150.0.7871.47 allowed a local attacker to execute arbitrary code via malicious netw
CVE-2026-138829: Unscored | Vulnix