{"id":"CVE-2026-138981","aliases":["CVE-2026-138981"],"related":[],"kind":"vulnerability","state":"published","title":"ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls","summary":"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->dev (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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->dev (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.","source":"cvelist"}],"published":"2026-11-30T13:26:46.441Z","modified":"2026-11-30T14:18:00.350Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"63a511284c9ea72696a5dd0a2d2721bdef19f774","fixed":"ccc4554bcc3fbd5c9ee67dcd2adced6271907140","status":"affected"},{"type":"git","introduced":"63a511284c9ea72696a5dd0a2d2721bdef19f774","fixed":"f97556197b7280e19d336dbff6b9d47b7e9eb99b","status":"affected"},{"type":"git","introduced":"63a511284c9ea72696a5dd0a2d2721bdef19f774","fixed":"e043acd7535f59ff58fe02caeba30930796478d3","status":"affected"},{"type":"git","introduced":"63a511284c9ea72696a5dd0a2d2721bdef19f774","fixed":"7aa3c1063c917b70214ea8d0e5aafb115fe2d4a1","status":"affected"},{"type":"git","introduced":"63a511284c9ea72696a5dd0a2d2721bdef19f774","fixed":"0bc42544a4a06e8d76eb412d2b1414db910a311d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ccc4554bcc3fbd5c9ee67dcd2adced6271907140","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f97556197b7280e19d336dbff6b9d47b7e9eb99b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e043acd7535f59ff58fe02caeba30930796478d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7aa3c1063c917b70214ea8d0e5aafb115fe2d4a1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0bc42544a4a06e8d76eb412d2b1414db910a311d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138981","url":"https://www.cve.org/CVERecord?id=CVE-2026-138981","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:46.441Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138981","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138981","licence":"Public domain","modified":"2026-11-30T14:18:00.350Z"}],"updatedAt":"2026-11-30T14:33:06.592Z","epss":{"score":0.00209,"percentile":0.11662,"date":"2026-12-01T12:00:22.000Z"}}