{"id":"CVE-2026-138981","summary":"ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: rt712-sdca-dmic: fix drvdata type in the gain controls\n\nrt712_sdca_dmic_set_gain_get() and rt712_sdca_dmic_set_gain_put() take\nthe component drvdata as struct rt712_sdca_priv, but this driver stores\na struct rt712_sdca_dmic_priv.\n\nregmap and mbq_regmap are at the same offsets in both structs, so the\nregister accesses work. slave is not: rt712_sdca_priv has dmic_component\nin front of it, so its slave overlays rt712_sdca_dmic_priv's params,\nwhich this driver never writes. When regmap_write() fails in the put\nhandler, dev_err() is called with &NULL-\u003edev (RSI below):\n\n  rt712-sdca-dmic sdw:0:3:025d:1713:01: Defer on undeferrable control: 40800f13\n  BUG: kernel NULL pointer dereference, address: 0000000000000058\n  RIP: 0010:__dev_printk+0x10/0x70\n  RDX: ffffcdac45f83cd0 RSI: 0000000000000008 RDI: ffffffffa09cb5cb\n  Call Trace:\n   _dev_err+0x7f/0x99\n   rt712_sdca_dmic_set_gain_put.cold+0x20/0x25 [snd_soc_rt712_sdca_dmic]\n   snd_ctl_elem_write+0x19a/0x1f0 [snd]\n   snd_ctl_ioctl+0x658/0x8a0 [snd]\n\nSeen on a Dell Precision 5690 running 7.2.5-200.fc44, with alsactl\nwriting the control during boot. Compile-tested only.","modified":"2026-11-30T15:01:44.104295317Z","published":"2026-11-30T13:26:46.441Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138981.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/0bc42544a4a06e8d76eb412d2b1414db910a311d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7aa3c1063c917b70214ea8d0e5aafb115fe2d4a1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ccc4554bcc3fbd5c9ee67dcd2adced6271907140"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e043acd7535f59ff58fe02caeba30930796478d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f97556197b7280e19d336dbff6b9d47b7e9eb99b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138981.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138981"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"63a511284c9ea72696a5dd0a2d2721bdef19f774"},{"fixed":"ccc4554bcc3fbd5c9ee67dcd2adced6271907140"},{"fixed":"f97556197b7280e19d336dbff6b9d47b7e9eb99b"},{"fixed":"e043acd7535f59ff58fe02caeba30930796478d3"},{"fixed":"7aa3c1063c917b70214ea8d0e5aafb115fe2d4a1"},{"fixed":"0bc42544a4a06e8d76eb412d2b1414db910a311d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138981.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138981.json"}}],"schema_version":"1.9.2"}