Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: control: Don't add invalid kcontrols to LED layer The kcontrol LED state layer tries to track the all associated kcontrol elements with naive assumptions that they are readable. But one can create a write-only element that has no get callback (even a user element can do it), and this may lead to a NULL dereference at the call chain of snd_ctl_led_notify(), as found by syzkaller. For avoiding the Oops, add a sanity check of the kcontrol's info and get callbacks, and just skip the invalid kcontrols before assigning the kctl to the LED layer.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
22d8de62f11b287b279f1d4473a78c7d5e53e7bc to < 6e152cbfac3a2a62f79df7d23d621917c20367ebaffected22d8de62f11b287b279f1d4473a78c7d5e53e7bc to < 3b8a540b36aa064822c701e4e0a1dea2cd4ec5b0affected22d8de62f11b287b279f1d4473a78c7d5e53e7bc to < 3d20cd049fc5f51f80e24a2db7a3cf00593c79e4affected22d8de62f11b287b279f1d4473a78c7d5e53e7bc to < 2f0c97b1a32fba8e81a69f6231aa0b3c9b6bc581affected22d8de62f11b287b279f1d4473a78c7d5e53e7bc to < 18c08f84ca483029f04e426ec7ca3b5d3684cf22affected22d8de62f11b287b279f1d4473a78c7d5e53e7bc to < 74e3b979ce8b78a690f8b94ccf2e2c965f7f5c11affected
Linux Linux
Default version status: affected
5.13affected0 to < 5.13unaffected6.1.188 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6e152cbfac3a2a62f79df7d23d621917c20367eb ↗
- https://git.kernel.org/stable/c/3b8a540b36aa064822c701e4e0a1dea2cd4ec5b0 ↗
- https://git.kernel.org/stable/c/3d20cd049fc5f51f80e24a2db7a3cf00593c79e4 ↗
- https://git.kernel.org/stable/c/2f0c97b1a32fba8e81a69f6231aa0b3c9b6bc581 ↗
- https://git.kernel.org/stable/c/18c08f84ca483029f04e426ec7ca3b5d3684cf22 ↗
- https://git.kernel.org/stable/c/74e3b979ce8b78a690f8b94ccf2e2c965f7f5c11 ↗