CVE-2023-52887
Description
From CVE.org
In the Linux kernel, the following vulnerability has been resolved: net: can: j1939: enhanced error handling for tightly received RTS messages in xtp_rx_rts_session_new This patch enhances error handling in scenarios with RTS (Request to Send) messages arriving closely. It replaces the less informative WARN_ON_ONCE backtraces with a new error handling method. This provides clearer error messages and allows for the early termination of problematic sessions. Previously, sessions were only released at the end of j1939_xtp_rx_rts(). Potentially this could be reproduced with something like: testj1939 -r vcan0:0x80 & while true; do # send first RTS cansend vcan0 18EC8090#1014000303002301; # send second RTS cansend vcan0 18EC8090#1014000303002301; # send abort cansend vcan0 18EC8090#ff00000000002301; done
Statement
A flaw of low impact was found in the Linux kernel's SAE J1939 CAN (Controller Area Network) transport protocol implementation in net/can/j1939/transport.c. When Request to Send (RTS) messages for a new transport session arrive in quick succession, inadequate error handling in xtp_rx_rts_session_new() left the problematic session in place until the end of j1939_xtp_rx_rts() and only produced WARN_ON_ONCE backtraces, which can affect availability on systems using the J1939 protocol. Red Hat rated this flaw Low severity (CVSS 3.3, local vector, availability-only impact) because triggering it requires the ability to send crafted J1939 frames on a system with a configured CAN interface. In Red Hat Enterprise Linux 9, the kernel and kernel-rt packages are affected, with the fix deferred given the low severity and the specialized J1939 configuration required to reach this code; the residual risk is limited local availability impact on systems actively using the J1939 protocol. Red Hat Enterprise Linux 6, 7, and 8, as well as Red Hat's Hosted OpenShift Clusters (ARO and OSD), are not affected. In Fedora, the community kernel package is affected and is fixed through the standard Fedora kernel update. The upstream CVE record assigns a higher severity (7.5, Important, network attack vector); Red Hat's assessment differs because this issue requires a locally configured CAN/J1939 interface and its impact is limited to availability.
Mitigation
Only systems with a configured CAN interface actively using the SAE J1939 protocol are exposed to this issue. Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 3.3 | 5.5 | 7.5 |
| Attack Vector | Local | Local | Network |
| Attack Complexity | Low | Low | Low |
| Privileges Required | Low | Low | None |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | None | None | None |
| Integrity Impact | None | None | None |
| Availability Impact | Low | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory)
An attacker could provide unexpected values and cause a program crash or arbitrary control of resource allocation, leading to excessive consumption of resources such as memory and CPU.
Confidentiality
Technical Impact: Read Memory; Read Files or Directories
An attacker could read confidential data if they are able to control resource references.
Integrity,Confidentiality,Availability
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
An attacker could use malicious input to modify data or possibly alter control flow in unexpected ways, including arbitrary command execution.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.