{"schemaVersion":4,"id":"CVE-2026-91007","aliases":[],"status":"published","duplicateOf":null,"title":"Arbitrary supervisor-mode function pointer injection via charger_set_prop() syscall in the charger driver API","description":"The user-mode syscall verifiers for the charger driver API in drivers/charger/charger_handlers.c did not inspect the prop argument before copying union charger_propval across the user/kernel boundary. Two members of that union are function pointers — status_notification (CHARGER_PROP_STATUS_NOTIFICATION) and online_notification (CHARGER_PROP_ONLINE_NOTIFICATION), declared in include/zephyr/drivers/charger.h — and z_vrfy_charger_set_prop() forwarded the caller-supplied union verbatim to the driver's set_property callback for any property. z_vrfy_charger_get_prop() had the mirror defect and copied the stored kernel callback address back out to user memory.\n\nWith CONFIG_USERSPACE enabled, any user-mode thread that has been granted a charger device object could call charger_set_prop() with CHARGER_PROP_STATUS_NOTIFICATION or CHARGER_PROP_ONLINE_NOTIFICATION and an arbitrary pointer value. Drivers that implement these properties — drivers/charger/charger_max20335.c, drivers/charger/charger_pf1550.c and drivers/charger/charger_bq2518x.c — store the pointer in device data and later invoke it from their interrupt work handlers, which run in supervisor mode, on any charger state change such as a cable plug/unplug.\n\nThe result is a control-flow hijack at kernel privilege from an unprivileged thread, defeating the isolation that CONFIG_USERSPACE is meant to provide; the read path additionally disclosed a kernel code address to user mode, and clearing a notifier installed by a supervisor thread let user mode suppress charger notifications. Supervisor-mode callers of charger_set_prop()/charger_get_prop() are unaffected.\n\nThe fix makes both verifiers reject the two notifier properties outright — including when the supplied callback is NULL, since the notifiers are device state — and adds a BUILD_ASSERT on CHARGER_PROP_COMMON_COUNT so that new properties force a re-review of the union's user-mode safety.","dates":{"published":"2026-11-12T15:19:20.012Z","modified":"2026-11-17T16:26:24.788Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00146,"percentile":0.03995,"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.00112,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00146,"percentile":0.03995}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00165,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00146,"percentile":0.03995}]},"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-822","name":"Untrusted Pointer Dereference","description":"The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/822.html"}],"affected":[{"vendor":"zephyrproject","product":"zephyr","name":"zephyr","label":"zephyr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.7.0, < 4.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.7.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.7.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/5467b7a73fe093d7e9562ee15c321cf8f1639d17","label":"github.com/zephyrproject-rtos/zephyr/commit/5467b7a73fe093d7e9562ee15c321cf8f1639d17","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-jr35-f52j-fm88","label":"github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-jr35-f52j-fm88","hostname":"github.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-12T15:19:20.012Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T16:26:24.788Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,78],"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.00146,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T16:26:24.788Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-17T16:26:24.788Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T16:06:14.218Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00146,"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:02:38.028Z","stale":false,"partial":false}}