{"schemaVersion":4,"id":"CVE-2026-19809","aliases":[],"status":"published","duplicateOf":null,"title":"Kernel stack information disclosure in the charger_get_prop() system call handler","description":"The user-mode system call verifier z_vrfy_charger_get_prop() in drivers/charger/charger_handlers.c declares an uninitialized union charger_propval k_val on the kernel (privileged) stack, passes it to the charger driver back end via z_impl_charger_get_prop(), and then copies the full sizeof(union charger_propval) back into the calling user thread's buffer with k_usermode_to_copy(). That discloses kernel stack contents on two paths:\n\nOn error. The copy-out ignores the driver's return code. In-tree back ends return an error without writing through the value pointer for properties they do not implement: charger_gpio_get_prop() returns -ENOTSUP unconditionally, and bq24190_get_prop() has a default: return -ENOTSUP; arm that never touches val. The whole union is then stack residue.\nOn success. A back end writes only the one union member the requested property selects (for example sbs_charger.c writes the one-byte val->present for CHARGER_PROP_PRESENT and returns 0), yet the handler still copies the whole union, so every byte beyond that member is uninitialized.\n\nThe handler is compiled only when CONFIG_USERSPACE=y and is reachable by any user-mode thread that has been granted access to a charger device object. K_SYSCALL_DRIVER_CHARGER() validates only the device object and its API pointer, not the property identifier, so an unprivileged thread can choose prop freely: an unimplemented property forces the error path, a narrow one the success path, and the call can be repeated at will.\n\nEach call discloses up to the size of the union (12 bytes on a 32-bit target, 16 bytes on 64-bit targets where the function-pointer members widen it) of supervisor-stack memory. The bytes are residue of earlier kernel-side frames on the thread's privileged stack and can contain kernel object addresses and saved return addresses, which an unprivileged thread cannot otherwise observe and which help defeat address-layout assumptions when exploiting a separate memory-safety defect. There is no integrity or availability impact.\n\nTwo commits fix it, and both are needed. 5054384e983c skips the copy-out when the back end reports an error. c31cac727d02 zeroes the union before the driver call, so the bytes copied out on success are driver-written data or zeros. A tree carrying only the first still leaks on every successful call.","dates":{"published":"2026-11-12T15:19:22.205Z","modified":"2026-11-17T16:26:17.073Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.3,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00165,"percentile":0.05919,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-13T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00165,"percentile":0.05919}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00109,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00155,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00165,"percentile":0.05919}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-252","name":"Unchecked Return Value","description":"The product does not check the return value from a method or function.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/252.html"},{"id":"CWE-908","name":"Use of Uninitialized Resource","description":"The product uses or accesses a resource that has not been initialized.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/908.html"}],"affected":[{"vendor":"zephyrproject","product":"zephyr","name":"zephyr","label":"zephyr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.5.0, < 4.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.5.0","startInclusive":true,"end":"4.3.2","endInclusive":false}},{"text":"≥ 4.4.0, < 4.5.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.4.0","startInclusive":true,"end":"4.5.0","endInclusive":false}}],"versionsText":"≥ 3.5.0, < 4.3.2 | ≥ 4.4.0, < 4.5.0","eol":null,"hubHref":"/vendor/zephyrproject/zephyr"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/5054384e983c105b90d704272abcd479486ae3a2","label":"github.com/zephyrproject-rtos/zephyr/commit/5054384e983c105b90d704272abcd479486ae3a2","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/c31cac727d029f273a67f65941985696f1882867","label":"github.com/zephyrproject-rtos/zephyr/commit/c31cac727d029f273a67f65941985696f1882867","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-rghm-r3c9-92qc","label":"github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-rghm-r3c9-92qc","hostname":"github.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-12T15:19:22.205Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T16:26:17.073Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,33],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00165,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T16:26:17.073Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-17T16:26:17.073Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T16:02:03.247Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00165,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:03:13.438Z","stale":false,"partial":false}}