CVE-2026-138981

Source
https://cve.org/CVERecord?id=CVE-2026-138981
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138981.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138981
Downstream
Published
2026-11-30T13:26:46Z
Modified
2026-11-30T15:01:44Z
Summary
ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls
Details

In the Linux kernel, the following vulnerability has been resolved:

ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls

rt712_sdca_dmic_set_gain_get() and rt712_sdca_dmic_set_gain_put() take the component drvdata as struct rt712_sdca_priv, but this driver stores a struct rt712_sdca_dmic_priv.

regmap and mbq_regmap are at the same offsets in both structs, so the register accesses work. slave is not: rt712_sdca_priv has dmic_component in front of it, so its slave overlays rt712_sdca_dmic_priv's params, which this driver never writes. When regmap_write() fails in the put handler, dev_err() is called with &NULL->dev (RSI below):

rt712-sdca-dmic sdw:0:3:025d:1713:01: Defer on undeferrable control: 40800f13 BUG: kernel NULL pointer dereference, address: 0000000000000058 RIP: 0010:__dev_printk+0x10/0x70 RDX: ffffcdac45f83cd0 RSI: 0000000000000008 RDI: ffffffffa09cb5cb Call Trace: _dev_err+0x7f/0x99 rt712_sdca_dmic_set_gain_put.cold+0x20/0x25 [snd_soc_rt712_sdca_dmic] snd_ctl_elem_write+0x19a/0x1f0 [snd] snd_ctl_ioctl+0x658/0x8a0 [snd]

Seen on a Dell Precision 5690 running 7.2.5-200.fc44, with alsactl writing the control during boot. Compile-tested only.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138981.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"