VDB

CVE-2024-40966

CVE-2024-40966 PUBLISHED

tty: add the option to have a tty reject a new ldisc

Reported by linux · Published July 12, 2024

In the Linux kernel, the following vulnerability has been resolved: tty: add the option to have a tty reject a new ldisc ... and use it to limit the virtual terminals to just N_TTY. They are kind of special, and in particular, the "con_write()" routine violates the "writes cannot sleep" rule that some ldiscs rely on. This avoids the BUG: sleeping function called from invalid context at kernel/printk/printk.c:2659 when N_GSM has been attached to a virtual console, and gsmld_write() calls con_write() while holding a spinlock, and con_write() then tries to get the console lock.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.96-102.177.amzn2023
python3-perfAmazon Linux6.1.96-102.177.amzn2023
kernel-develAmazon Linux6.1.96-102.177.amzn2023
bpftoolAmazon Linux6.1.96-102.177.amzn2023
kernel-livepatch-6.1.96-102.177Amazon Linux1.0-0.amzn2023
kernelAmazon Linux6.1.96-102.177.amzn2023
kernel-libbpf-develAmazon Linux6.1.96-102.177.amzn2023
kernel-libbpf-staticAmazon Linux6.1.96-102.177.amzn2023
linux_kernellinux6.9.7, 6.6.36, 6.1.96
LinuxLinux6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b, 5920ac19964f9e20181f63b410d9200ddbf8dc86, 3c6332f3bb1578b5b10ac2561247b1d6272ae937, 287b569a5b914903ba7c438a3c0dbc3410ebb409

Affected products

VendorProductVersions
LinuxLinuxe1eaea46bb4020b38a141b84f88565d4603f8dd0, e1eaea46bb4020b38a141b84f88565d4603f8dd0, e1eaea46bb4020b38a141b84f88565d4603f8dd0
LinuxLinux2.6.35, 0, 6.1.96
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023kernel-devel0
amazon:2023bpftool0
amazon:2023kernel-livepatch-6.1.96-102.1770
amazon:2023kernel0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf-static0
LinuxLinux*, *, *
linuxlinux_kernel2.6.35, 2.6.35, 2.6.35
amazon:2023kernel-tools0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-tools-devel0
amazon:2023perf0
amazon:2023kernel-headers0
amazon:2023kernel-libbpf0

Timeline

  • Jul 12, 2024 CVE Published
  • Jul 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
  • Jan 7, 2026 Security Advisory (346 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (176 in total, the first dated here)
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-40966
vulnetix vdb fixes CVE-2024-40966

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40966/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›