platform/x86: hp-bioscfg: fix password encoding bounds check
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.157, 6.12.110, 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix password encoding bounds check The password PSWD_ENCODINGS parser reads password_obj[elem + pos_values] while copying the supported password encodings from the ACPI package. The outer loop only guarantees that elem is within password_obj_count. The encoding count is bounded by MAX_ENCODINGS_SIZE, but that does not guarantee that the ACPI package contains enough entries for all elem + pos_values accesses. A malformed package can therefore declare a non-zero encoding count without providing enough string objects, causing the parser to read past the ACPI package array and pass an out-of-bounds string pointer and length to hp_convert_hexstr_to_str(). Add the same computed-index bounds check used by the other offset-based package parsing loops before reading password_obj[elem + pos_values].
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 8646a3b5ee3a5b384a22a721f37c24274d974045 · fixed in c224759555a13735b0d67561d818cefe00c3309a; From 8646a3b5ee3a5b384a22a721f37c24274d974045 · fixed in 59fe8491ddaa03a510b352552e6ee291e7ce45d3; From 8646a3b5ee3a5b384a22a721f37c24274d974045 · fixed in ace1ba5fca0ab775b3641e154bcbc3ccde26a71a; From 8646a3b5ee3a5b384a22a721f37c24274d974045 · fixed in 8a7499b8fd34438c1b11964e0e7ef5bd590fec92; From 8646a3b5ee3a5b384a22a721f37c24274d974045 · fixed in e213939ed9e6e6badf7aa48c4c8dd9a9cdf00615
- Linux Linux
6.6
- KernelLinux
From 6.6.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6