Skip to content
  1. May 18, 2021
  2. May 17, 2021
  3. May 14, 2021
  4. May 11, 2021
  5. May 10, 2021
  6. May 07, 2021
  7. May 06, 2021
  8. May 04, 2021
  9. May 03, 2021
  10. Apr 28, 2021
  11. Apr 27, 2021
  12. Apr 26, 2021
    • Takashi Iwai's avatar
      Merge tag 'asoc-v5.13' of... · 0301201b
      Takashi Iwai authored
      Merge tag 'asoc-v5.13' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Updates for v5.13
      
      A lot of changes here for quite a quiet release in subsystem terms -
      there's been a lot of fixes and cleanups all over the subsystem both
      from generic work and from people working on specific drivers.
      
       - More cleanup and consolidation work in the core and the generic card
         drivers from Morimoto-san.
       - Lots of cppcheck fixes for Pierre-Louis Brossart.
       - New drivers for Freescale i.MX DMA over rpmsg, Mediatek MT6358
         accessory detection, and Realtek RT1019, RT1316, RT711 and RT715.
      0301201b
    • Lv Yunlong's avatar
      ALSA: emu8000: Fix a use after free in snd_emu8000_create_mixer · 1c98f574
      Lv Yunlong authored
      
      
      Our code analyzer reported a uaf.
      
      In snd_emu8000_create_mixer, the callee snd_ctl_add(..,emu->controls[i])
      calls snd_ctl_add_replace(.., kcontrol,..). Inside snd_ctl_add_replace(),
      if error happens, kcontrol will be freed by snd_ctl_free_one(kcontrol).
      Then emu->controls[i] points to a freed memory, and the execution comes
      to __error branch of snd_emu8000_create_mixer. The freed emu->controls[i]
      is used in snd_ctl_remove(card, emu->controls[i]).
      
      My patch set emu->controls[i] to NULL if snd_ctl_add() failed to avoid
      the uaf.
      
      Signed-off-by: default avatarLv Yunlong <lyl2019@mail.ustc.edu.cn>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210426131129.4796-1-lyl2019@mail.ustc.edu.cn
      
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      1c98f574