Skip to content
Heist/ feed
High

power: supply: qcom_battmgr: terminate the strings from firmware

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: power: supply: qcom_battmgr: terminate the strings from firmware The qcom_battmgr_sc8280xp_strcpy() takes a Pascal-style string when the firmware sends one. Otherwise it copies all BATTMGR_STRING_LEN bytes and leaves the destination without a terminator. Those destinations are model_number, serial_number and oem_info, each BATTMGR_STRING_LEN and declared next to each other. They go out to user space as val->strval, which power_supply_format_property() prints with "%s", so a firmware string that fills the whole field makes that read run into the following members. Use strscpy() so the copy always terminates, the way the SM8350 path already does for the same field.

Announced Source revision 1
Original source ↗

CVE-2026-89466

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-89466

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "29e8142b5623b5949587bcc4f591c4e6595c4aca",
        "lessThan": "c06028db620854b11ad81b04b0a4e1ead930cb76",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "29e8142b5623b5949587bcc4f591c4e6595c4aca",
        "lessThan": "0e70a9b0d16acf7adebc4f386178a95da27c0027",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "29e8142b5623b5949587bcc4f591c4e6595c4aca",
        "lessThan": "ee053561e21ce1e1741dd64ca5ddcdb92e40edc1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "29e8142b5623b5949587bcc4f591c4e6595c4aca",
        "lessThan": "6cc6c28c9ab6e8ecf901397717a5b391b828cdaf",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "29e8142b5623b5949587bcc4f591c4e6595c4aca",
        "lessThan": "ab1112df8f4ffa88cb024dd370c432ced80f77d8",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/power/supply/qcom_battmgr.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.3"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.3",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.157",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.109",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.50",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.4",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/power/supply/qcom_battmgr.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-89466

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#34998 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement