{"id":"CVE-2026-143457","summary":"pwm: lp3943: fix NULL pointer dereference for an unconfigured channel","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npwm: lp3943: fix NULL pointer dereference for an unconfigured channel\n\nlp3943_pwm_probe() unconditionally registers a pwmchip with\nLP3943_NUM_PWMS(2) hwpwm channels, but lp3943_pwm_parse_dt() only\npopulates pdata-\u003epwms[i] for the channels whose ti,pwm0/ti,pwm1\nproperty is actually present in the devicetree (the binding\nexplicitly allows each PWM generator to drive zero or more outputs,\nand lp3943_pwm_parse_dt() only fails outright with -ENODATA if\n*neither* property is present). A devicetree that configures only one\nof the two channels leaves pdata-\u003epwms[] NULL for the other.\n\nlp3943_pwm_request_map() dereferences pdata-\u003epwms[hwpwm] with no NULL\ncheck:\n\n\tpwm_map-\u003eoutput = pdata-\u003epwms[hwpwm]-\u003eoutput;\n\tpwm_map-\u003enum_outputs = pdata-\u003epwms[hwpwm]-\u003enum_outputs;\n\nso requesting the unconfigured channel (e.g. exporting it from\nsysfs) crashes with a NULL pointer dereference instead of failing\ncleanly.\n\nReturn -ENODEV from lp3943_pwm_request_map() when the channel was\nnever configured, before the pointer is dereferenced. The caller,\nlp3943_pwm_request(), already propagates an ERR_PTR return correctly\n(it does so today for the existing -EBUSY case).","modified":"2026-12-05T03:01:11.690547838Z","published":"2026-12-05T01:41:36.745Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143457.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/17dbb6938d3ab444cd6be1c95506450595a8800d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c5cc1ac12dc62fc3007b04aaec4ea9c0fffeda3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/67f4eac92948d9f49c641f46ded45c50b809d038"},{"type":"WEB","url":"https://git.kernel.org/stable/c/712a7db67b89079296d33170863aec5e63f9a898"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a586dc64158bffc879656f1da4f679185e961c48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a84360e2866e629955e5d7871a3daf6866c89686"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd766beb93b552fb365f9e3961ce8a63f867d0a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/df4397c973a347a5e956bc8687d0995330455a4d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143457.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143457"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"af66b3c0934e350059646651958306565313e145"},{"fixed":"67f4eac92948d9f49c641f46ded45c50b809d038"},{"fixed":"712a7db67b89079296d33170863aec5e63f9a898"},{"fixed":"df4397c973a347a5e956bc8687d0995330455a4d"},{"fixed":"a84360e2866e629955e5d7871a3daf6866c89686"},{"fixed":"a586dc64158bffc879656f1da4f679185e961c48"},{"fixed":"bd766beb93b552fb365f9e3961ce8a63f867d0a5"},{"fixed":"3c5cc1ac12dc62fc3007b04aaec4ea9c0fffeda3"},{"fixed":"17dbb6938d3ab444cd6be1c95506450595a8800d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143457.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.14.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143457.json"}}],"schema_version":"1.9.2"}