{"id":"CVE-2026-89466","revision":"51d02bae60524aa49d7f5ad2002ae2f8","records":[{"revision":"51d02bae60524aa49d7f5ad2002ae2f8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-89466","aliases":[],"title":"power: supply: qcom_battmgr: terminate the strings from firmware","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: qcom_battmgr: terminate the strings from firmware\n\nThe qcom_battmgr_sc8280xp_strcpy() takes a Pascal-style string when the\nfirmware sends one. Otherwise it copies all BATTMGR_STRING_LEN bytes and\nleaves the destination without a terminator.\n\nThose destinations are model_number, serial_number and oem_info, each\nBATTMGR_STRING_LEN and declared next to each other. They go out to user\nspace as val->strval, which power_supply_format_property() prints with\n\"%s\", so a firmware string that fills the whole field makes that read run\ninto the following members.\n\nUse strscpy() so the copy always terminates, the way the SM8350 path\nalready does for the same field.","state":0,"publishedAt":"2026-09-11T19:43:26.621+00:00","modifiedAt":"2026-10-19T08:47:15.439+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/power/supply/qcom_battmgr.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"29e8142b5623b5949587bcc4f591c4e6595c4aca\",\n                            \"lessThan\": \"c06028db620854b11ad81b04b0a4e1ead930cb76\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"29e8142b5623b5949587bcc4f591c4e6595c4aca\",\n                            \"lessThan\": \"0e70a9b0d16acf7adebc4f386178a95da27c0027\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"29e8142b5623b5949587bcc4f591c4e6595c4aca\",\n                            \"lessThan\": \"ee053561e21ce1e1741dd64ca5ddcdb92e40edc1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"29e8142b5623b5949587bcc4f591c4e6595c4aca\",\n                            \"lessThan\": \"6cc6c28c9ab6e8ecf901397717a5b391b828cdaf\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"29e8142b5623b5949587bcc4f591c4e6595c4aca\",\n                            \"lessThan\": \"ab1112df8f4ffa88cb024dd370c432ced80f77d8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/power/supply/qcom_battmgr.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.3\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.3\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.157\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.109\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.50\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.4\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":7.7,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/c06028db620854b11ad81b04b0a4e1ead930cb76","https://git.kernel.org/stable/c/0e70a9b0d16acf7adebc4f386178a95da27c0027","https://git.kernel.org/stable/c/ee053561e21ce1e1741dd64ca5ddcdb92e40edc1","https://git.kernel.org/stable/c/6cc6c28c9ab6e8ecf901397717a5b391b828cdaf","https://git.kernel.org/stable/c/ab1112df8f4ffa88cb024dd370c432ced80f77d8"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89466","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-89466","identifiers":["CVE-2026-89466"]},"retained":false,"historicalAffected":[]}],"coverage":[]}