Description
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: hp-bioscfg: NUL-terminate the SPM auth token
auth_token_store() copies the token with kmemdup(), which does not NUL
terminate it, but hp_calculate_security_buffer() and
hp_populate_security_buffer() use it as a C string and read past the
allocation.
A lone newline (echo > auth_token) is worse: kmemdup() of 0 bytes
returns ZERO_SIZE_PTR, which passes the NULL checks, so a later
attribute write passes it to strlen().
A userspace replica of the two helpers under ASan reports a heap
buffer overflow in hp_calculate_security_buffer() for the unterminated
token and a fault at address 0x10 for the lone newline, and is clean
with this change.
The token is a string, so copy it with kstrndup(), which always NUL
terminates and allocates at least one byte.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 0 | — |
| Linux | Linux | 6.6 | — |
| Linux | Linux | b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 <a457586335aff3a56f450bb9664ed86c58342f91 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 <a270d509427b20af6ae959b971ff135a19611546 | — |
| Linux | Linux | b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 <f2769668959f6411ac69e83080a240f8a8785e05 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | patch: 6.12.117 | — |
| Linux | Linux | b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 <c04cd1d0818221f7ee35893fe5524865509b1103 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 <16ca1aac1c3dbfb77633fee2b7fe2c206f332e64 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.117-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/a457586335aff3a56f450bb9664ed86c58342f91
- https://git.kernel.org/stable/c/a270d509427b20af6ae959b971ff135a19611546
- https://git.kernel.org/stable/c/c04cd1d0818221f7ee35893fe5524865509b1103
- https://git.kernel.org/stable/c/16ca1aac1c3dbfb77633fee2b7fe2c206f332e64
- https://git.kernel.org/stable/c/f2769668959f6411ac69e83080a240f8a8785e05