Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2025-37814
linux linux kernel

Score5.5 Medium
CVSS 3.1
Exploit probability (EPSS)0.34%
within the next 30 days
CategoryOther
Published8 May 2025
Last modified: 30 July 2026

In short

This vulnerability can be exploited with local access to the device, with a regular user account, without any user interaction.

A successful attack has high impact: crashing the system or making it unavailable.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

In the Linux kernel, the following vulnerability has been resolved: tty: Require CAP_SYS_ADMIN for all usages of TIOCL_SELMOUSEREPORT This requirement was overeagerly loosened in commit 2f83e38a095f ("tty: Permit some TIOCL_SETSEL modes without CAP_SYS_ADMIN"), but as it turns out, (1) the logic I implemented there was inconsistent (apologies!), (2) TIOCL_SELMOUSEREPORT might actually be a small security risk after all, and (3) TIOCL_SELMOUSEREPORT is only meant to be used by the mouse daemon (GPM or Consolation), which runs as CAP_SYS_ADMIN already. In more detail: 1. The previous patch has inconsistent logic: In commit 2f83e38a095f ("tty: Permit some TIOCL_SETSEL modes without CAP_SYS_ADMIN"), we checked for sel_mode == TIOCL_SELMOUSEREPORT, but overlooked that the lower four bits of this "mode" parameter were actually used as an additional way to pass an argument. So the patch did actually still require CAP_SYS_ADMIN, if any of the mouse button bits are set, but did not require it if none of the mouse buttons bits are set. This logic is inconsistent and was not intentional. We should have the same policies for using TIOCL_SELMOUSEREPORT independent of the value of the "hidden" mouse button argument. I sent a separate documentation patch to the man page list with more details on TIOCL_SELMOUSEREPORT: https://lore.kernel.org/all/[email protected]/ 2. TIOCL_SELMOUSEREPORT is indeed a potential security risk which can let an attacker simulate "keyboard" input to command line applications on the same terminal, like TIOCSTI and some other TIOCLINUX "selection mode" IOCTLs. By enabling mouse reporting on a terminal and then injecting mouse reports through TIOCL_SELMOUSEREPORT, an attacker can simulate mouse movements on the same terminal, similar to the TIOCSTI keystroke injection attacks that were previously possible with TIOCSTI and other TIOCL_SETSEL selection modes. Many programs (including libreadline/bash) are then prone to misinterpret these mouse reports as normal keyboard input because they do not expect input in the X11 mouse protocol form. The attacker does not have complete control over the escape sequence, but they can at least control the values of two consecutive bytes in the binary mouse reporting escape sequence. I went into more detail on that in the discussion at https://lore.kernel.org/all/[email protected]/ It is not equally trivial to simulate arbitrary keystrokes as it was with TIOCSTI (commit 83efeeeb3d04 ("tty: Allow TIOCSTI to be disabled")), but the general mechanism is there, and together with the small number of existing legit use cases (see below), it would be better to revert back to requiring CAP_SYS_ADMIN for TIOCL_SELMOUSEREPORT, as it was already the case before commit 2f83e38a095f ("tty: Permit some TIOCL_SETSEL modes without CAP_SYS_ADMIN"). 3. TIOCL_SELMOUSEREPORT is only used by the mouse daemons (GPM or Consolation), and they are the only legit use case: To quote console_codes(4): The mouse tracking facility is intended to return xterm(1)-compatible mouse status reports. Because the console driver has no way to know the device or type of the mouse, these reports are returned in the console input stream only when the virtual terminal driver receives a mouse update ioctl. These ioctls must be generated by a mouse-aware user-mode application such as the gpm(8) daemon. Jared Finder has also confirmed in https://lore.kernel.org/all/[email protected]/ that Emacs does not call TIOCL_SELMOUSEREPORT directly, and it would be difficult to find good reasons for doing that, given that it would interfere with the reports that GPM is sending. More information on the interaction between GPM, terminals and th ---truncated---

CVSS: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
linuxlinux kernel>=6.12.14 <6.12.26
linuxlinux kernel>=6.13.3 <6.14.5
linuxlinux kernel6.15

Sources

Latest in the same category

  • CVE-2026-67092 Low 3.7
    HCL ZIE for Windows is affected by an Insecure Storage of Sensitive Information vulnerability, as session recording files store usernames and passwords in reversible hexadecimal encoding rather than secure encryption.…
    Other · 30 November 2026
  • CVE-2026-56483 Low 2.7
    HCL Telco Observability is affected by a Mass Assignment vulnerability in its UI, which could allow a remote authenticated attacker to submit crafted request parameters, enabling arbitrary command execution,…
    Other · 30 November 2026
  • CVE-2026-56471 Medium 6.5
    HCL Telco Observability is affected by a Misconfigured Cross-Origin Resource Sharing (CORS) vulnerability involving arbitrary origin reflection in its CORS response handling, which could allow a remote attacker to…
    Other · 30 November 2026
  • CVE-2026-67094 Low 3.7
    HCL ZIE for Web is affected by an Autocomplete Enabled vulnerability. This could allow sensitive information, such as usernames and email addresses, to be stored and suggested by the browser, potentially exposing this…
    Other · 30 November 2026
  • CVE-2026-66991 Low 3.1
    Cookie Missing HttpOnly and SameSite Attributes vulnerability affects HCL ZIE for Web as the the application sets sensitive session cookies (e.g., JSESSIONID) without the HttpOnly and SameSite attributes, although the…
    Other · 30 November 2026
  • CVE-2026-133642 Not scored
    Interpretation conflict vulnerability in Apache Struts. When deciding which action a request invokes, Struts derived the path from the request as it was received rather than from the path the servlet container had…
    Other · 30 November 2026