CVE-2019-19807: Use After Free

Published Nov 6, 2019
·
Updated

A memory flaw was found in the ALSA subsystem of the Linux kernel. The struct sndtimerinstance function fails the timer->maxinstances check leading to an invalid address. This could lead to a use-after-free vulnerability.

Other sources

In the Linux kernel before 5.3.11, sound/core/timer.c has a use-after-free caused by erroneous code refactoring, aka CID-e7af6307a8a5. This is related to sndtimeropen and sndtimercloselocked. The timeri variable was originally intended to be for a newly created timer instance, but was used for a different purpose after refactoring.

In the Linux kernel, sound/core/timer.c has a use-after-free caused by erroneous code refactoring. This is related to sndtimeropen and sndtimercloselocked. The timeri variable was originally intended to be for a newly created timer instance, but was used for a different purpose after refactoring.

References:

https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.3.11

Upstream Patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e7af6307a8a54f0b873960b32b6a644f2d0fbd97https://github.com/torvalds/linux/commit/e7af6307a8a54f0b873960b32b6a644f2d0fbd97

— Red Hat

Affected Software

15 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1160.rt56.1131.el7
0:3.10.0-1160.rt56.1131.el7
redhat/kernel<0:3.10.0-1160.el7
0:3.10.0-1160.el7
redhat/kernel-rt<0:4.18.0-193.13.2.rt13.65.el8_2
0:4.18.0-193.13.2.rt13.65.el8_2
redhat/kernel<0:4.18.0-193.13.2.el8_2
0:4.18.0-193.13.2.el8_2
redhat/kernel<0:4.18.0-147.24.2.el8_1
0:4.18.0-147.24.2.el8_1
Linux Linux kernel>=4.9.199<4.9.201
Linux Linux kernel>=4.14.152<4.14.154
Linux Linux kernel>=4.19.82<4.19.84
Linux Linux kernel>=5.2<5.3.11
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.10
Google Android
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.11-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.rt56.1131.el7
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.el7
  3. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.13.2.rt13.65.el8_2
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.13.2.el8_2
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-147.24.2.el8_1
  6. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.11-1
  7. Upgrade

    Upgrade linux kernel to a version that resolves this vulnerability.

    Fixed in 5.3.11Patch CID-e7af6307a8a5
  8. Compensating control

    If you cannot immediately upgrade, mitigate by restricting access/usage of the ALSA sound subsystem in environments where it is not needed (e.g., avoid loading/using ALSA modules on affected systems), since Red Hat could not identify a practical mitigation.

Event History

Nov 6, 2019
CVE Published
12:00 AM
Dec 15, 2019
CVE Published
via MITRE·10:59 PM
Data Sourced
via MITRE·10:59 PM
Description
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 23, 2019
Data Sourced
via Red Hat·10:48 AM
DescriptionSeverityAffected Software
Apr 6, 2020
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:25 PM
Description
Jul 4, 2026
Data Sourced
via Ubuntu·11:03 AM
RemedyDescriptionSeverityAffected Software
Oct 20, 2026
Data Sourced
via Debian·09:36 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What vulnerability is identified by CVE-2019-19807?

CVE-2019-19807 is a use-after-free vulnerability in the ALSA subsystem of the Linux kernel due to a memory flaw in the struct snd_timer_instance function.

2

What is the severity of CVE-2019-19807?

CVE-2019-19807 has been classified as a Medium severity vulnerability.

3

How do I fix CVE-2019-19807?

To fix CVE-2019-19807, update the Linux kernel to version 5.3.11 or later, or apply the relevant patches provided by your Linux distribution.

4

Which Linux distributions are affected by CVE-2019-19807?

CVE-2019-19807 affects various Linux distributions including Red Hat, Ubuntu, and Debian prior to patched versions.

5

What are the conditions that lead to CVE-2019-19807 being exploited?

CVE-2019-19807 can be exploited when the ALSA subsystem is used in a specific way that bypasses the max_instances check, leading to memory corruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203