Lucene search

K
cveLinuxCVE-2024-40966
HistoryJul 12, 2024 - 1:15 p.m.

CVE-2024-40966

2024-07-1213:15:18
Linux
web.nvd.nist.gov
32
linux kernel
vulnerability
tty module

AI Score

6.5

Confidence

Low

EPSS

0

Percentile

15.9%

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.

Affected configurations

Vulners
Node
linuxlinux_kernelRange6.1.06.1.96
OR
linuxlinux_kernelRange6.2.06.6.36
OR
linuxlinux_kernelRange6.7.06.9.7
OR
linuxlinux_kernelRange6.10.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/tty/tty_ldisc.c",
      "drivers/tty/vt/vt.c",
      "include/linux/tty_driver.h"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "3c6332f3bb15",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "287b569a5b91",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "5920ac19964f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "6bd23e0c2bb6",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/tty/tty_ldisc.c",
      "drivers/tty/vt/vt.c",
      "include/linux/tty_driver.h"
    ],
    "versions": [
      {
        "version": "6.1.96",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.36",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.7",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.5

Confidence

Low

EPSS

0

Percentile

15.9%