cvelo
P4 · Info

pwm: lp3943: fix NULL pointer dereference for an unconfigured channel

  • CVE-2026-143457
  • EUVD-2026-145086

Summary

In the Linux kernel's lp3943 PWM driver, the probe routine registers both hardware PWM channels even when the devicetree configures only one of them. Requesting the unconfigured channel, for example by exporting it through sysfs, dereferences a NULL pointer in the request-map path, causing a crash instead of a clean failure. The fix makes the request path return -ENODEV for a channel that was never configured before the pointer is used. The record does not list a CVSS score and the entry is not marked as in the CISA known exploited list.

AI summary · verify against the vendor advisory

Description

In the Linux kernel, the following vulnerability has been resolved: pwm: lp3943: fix NULL pointer dereference for an unconfigured channel lp3943_pwm_probe() unconditionally registers a pwmchip with LP3943_NUM_PWMS(2) hwpwm channels, but lp3943_pwm_parse_dt() only populates pdata->pwms[i] for the channels whose ti,pwm0/ti,pwm1 property is actually present in the devicetree (the binding explicitly allows each PWM generator to drive zero or more outputs, and lp3943_pwm_parse_dt() only fails outright with -ENODATA if *neither* property is present). A devicetree that configures only one of the two channels leaves pdata->pwms[] NULL for the other. lp3943_pwm_request_map() dereferences pdata->pwms[hwpwm] with no NULL check: pwm_map->output = pdata->pwms[hwpwm]->output; pwm_map->num_outputs = pdata->pwms[hwpwm]->num_outputs; so requesting the unconfigured channel (e.g. exporting it from sysfs) crashes with a NULL pointer dereference instead of failing cleanly. Return -ENODEV from lp3943_pwm_request_map() when the channel was never configured, before the pointer is dereferenced. The caller, lp3943_pwm_request(), already propagates an ERR_PTR return correctly (it does so today for the existing -EBUSY case).

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    3.14none stated
    before 3.14: not affectednone stated
    from 5.10.275 up to 5.10.*: not affectednone stated
    from 5.15.226 up to 5.15.*: not affectednone stated
    from 6.1.193 up to 6.1.*: not affectednone stated
    from 6.6.163 up to 6.6.*: not affectednone stated
    from 6.12.119 up to 6.12.*: not affectednone stated
    from 6.18.65 up to 6.18.*: not affectednone stated

    and 2 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.