CVE-2018-10940: Buffer Overflow

Published May 9, 2018
·
Updated

The cdromioctlmediachanged function in drivers/cdrom/cdrom.c in the Linux kernel before 4.16.6 allows local attackers to use a incorrect bounds check in the CDROM driver CDROMMEDIACHANGED ioctl to read out kernel memory.

Affected Software

36 affected componentsFixes available
redhat/kernel<4.16.6
4.16.6
Linux Linux kernel<4.16.6
Debian Debian Linux=7.0
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-1
ubuntu/linux<3.13.0-157.207
3.13.0-157.207
ubuntu/linux-aws<4.4.0-1023.23
4.4.0-1023.23
ubuntu/linux-lts-xenial<4.4.0-128.154~14.04.1
4.4.0-128.154~14.04.1
ubuntu/linux<4.4.0-128.154
4.4.0-128.154
ubuntu/linux-aws<4.4.0-1061.70
4.4.0-1061.70
ubuntu/linux-azure<4.15.0-1014.14~16.04.1
4.15.0-1014.14~16.04.1
ubuntu/linux-gcp<4.15.0-1014.14~16.04.1
4.15.0-1014.14~16.04.1
ubuntu/linux-hwe<4.15.0-24.26~16.04.1
4.15.0-24.26~16.04.1
ubuntu/linux-kvm<4.4.0-1027.32
4.4.0-1027.32
ubuntu/linux-raspi2<4.4.0-1091.99
4.4.0-1091.99
ubuntu/linux-snapdragon<4.4.0-1094.99
4.4.0-1094.99
ubuntu/linux-fips<4.4.0-1008.10
4.4.0-1008.10
ubuntu/linux<4.15.0-24.26
4.15.0-24.26
ubuntu/linux-aws<4.15.0-1011.11
4.15.0-1011.11
ubuntu/linux-azure<4.15.0-1014.14
4.15.0-1014.14
ubuntu/linux-gcp<4.15.0-1010.10
4.15.0-1010.10
ubuntu/linux-kvm<4.15.0-1012.12
4.15.0-1012.12
ubuntu/linux-oem<4.15.0-1009.12
4.15.0-1009.12
ubuntu/linux-raspi2<4.15.0-1013.14
4.15.0-1013.14
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15*
ubuntu/linux-gke*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-azure-6.11*
ubuntu/linux-gcp-6.11*
ubuntu/linux-hwe-6.11*
ubuntu/linux-lowlatency-hwe-6.11*
ubuntu/linux-raspi-realtime*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4.16.6
  2. 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.12-1
  3. Upgrade

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

    Fixed in 3.13.0-157.207
  4. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1023.23
  5. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-128.154~14.04.1
  6. Upgrade

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

    Fixed in 4.4.0-128.154
  7. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1061.70
  8. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1014.14~16.04.1
  9. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1014.14~16.04.1
  10. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-24.26~16.04.1
  11. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1027.32
  12. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.4.0-1091.99
  13. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.4.0-1094.99
  14. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1008.10
  15. Upgrade

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

    Fixed in 4.15.0-24.26
  16. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1011.11
  17. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1014.14
  18. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1010.10
  19. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1012.12
  20. Upgrade

    Upgrade ubuntu/linux-oem to a version that resolves this vulnerability.

    Fixed in 4.15.0-1009.12
  21. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1013.14

Event History

May 9, 2018
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
via NVD·05:29 PM
RemedyDescriptionSeverityWeaknessAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2018-10940?

CVE-2018-10940 is a vulnerability in the Linux kernel that allows local attackers to read out kernel memory.

2

What is the severity of CVE-2018-10940?

The severity of CVE-2018-10940 is categorized as low.

3

How can local attackers exploit CVE-2018-10940?

Local attackers can exploit CVE-2018-10940 by using an incorrect bounds check in the CDROM driver CDROM_MEDIA_CHANGED ioctl to read kernel memory.

4

Which Linux kernel versions are affected by CVE-2018-10940?

Linux kernel versions before 4.16.6 are affected by CVE-2018-10940.

5

Where can I find more information about CVE-2018-10940?

You can find more information about CVE-2018-10940 in the references provided: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9de4ee40547fd315d4a0ed1dd15a2fa3559ad707, https://github.com/torvalds/linux/commit/9de4ee40547fd315d4a0ed1dd15a2fa3559ad707, and https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.16.6.

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