summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2026-10-07 19:20:39 +0200
committerTakashi Iwai <tiwai@suse.de>2026-10-08 08:47:06 +0200
commit27cee4141c8de82cf051104ca830c3a209816033 (patch)
treea1c4479644d56a9b86fb6b0d035076642f94d30b /tools/lib/python
parentc0a10d0e0e0d35361d2c81e1192db66ba726475d (diff)
ALSA: hda: Fix potential UAF for gating jack
snd_hda_jack_set_gating_jack() assigns gated and gating variables from the succeeding calls of snd_hda_jack_tbl_get(). This works normally, but the second call might kick off the reallocation of the jack table, hence the first pointer might become invalid, which leads to a UAF. For avoiding that pitfall, this patch changes the code to two phases: the first to only create two entries, and the second phase to get the pointers from the table, so that no relocation can happen any longer. Fixes: 0619ba8c17b1 ("ALSA: hda - Allow jack state to depend on another jack") Reported-by: Sashiko <sashiko-bot@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20261007172051.13240-4-tiwai@suse.de
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions