Linux Kernel up to 6.7.2 DRM drm_mode_page_flip_ioctl deadlock

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.0$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in Linux Kernel up to 6.7.2. Affected by this vulnerability is the function drm_mode_page_flip_ioctl of the component DRM. This manipulation causes deadlock. This vulnerability is tracked as CVE-2023-52486. No exploit exists. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical was found in Linux Kernel up to 6.7.2 (Operating System). Affected by this vulnerability is the function drm_mode_page_flip_ioctl of the component DRM. The manipulation with an unknown input leads to a deadlock vulnerability. The CWE definition for the vulnerability is CWE-833. The product contains multiple threads or executable segments that are waiting for each other to release a necessary lock, resulting in deadlock. As an impact it is known to affect availability. The summary by CVE is:

In the Linux kernel, the following vulnerability has been resolved: drm: Don't unref the same fb many times by mistake due to deadlock handling If we get a deadlock after the fb lookup in drm_mode_page_flip_ioctl() we proceed to unref the fb and then retry the whole thing from the top. But we forget to reset the fb pointer back to NULL, and so if we then get another error during the retry, before the fb lookup, we proceed the unref the same fb again without having gotten another reference. The end result is that the fb will (eventually) end up being freed while it's still in use. Reset fb to NULL once we've unreffed it to avoid doing it again until we've done another fb lookup. This turned out to be pretty easy to hit on a DG2 when doing async flips (and CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y). The first symptom I saw that drm_closefb() simply got stuck in a busy loop while walking the framebuffer list. Fortunately I was able to convince it to oops instead, and from there it was easier to track down the culprit.

The weakness was disclosed 02/29/2024. The advisory is shared at git.kernel.org. This vulnerability is known as CVE-2023-52486 since 02/20/2024. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 213508 (Ubuntu 16.04 LTS : Linux kernel vulnerabilities (USN-7185-1)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 4.19.307, 5.4.269, 5.10.210, 5.15.149, 6.1.76, 6.6.15, 6.7.3 or 6.8-rc1 eliminates this vulnerability. Applying the patch 376e21a9e4c2/9dd334a82450/f55261469be8/b4af63da9d94/62f2e79cf9f4/d7afdf360f4a/bfd0feb1b109/cb4daf271302 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at Tenable (213508). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.1
VulDB Meta Temp Score: 5.0

VulDB Base Score: 4.8
VulDB Temp Score: 4.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Deadlock
CWE: CWE-833 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 213508
Nessus Name: Ubuntu 16.04 LTS : Linux kernel vulnerabilities (USN-7185-1)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 4.19.307/5.4.269/5.10.210/5.15.149/6.1.76/6.6.15/6.7.3/6.8-rc1
Patch: 376e21a9e4c2/9dd334a82450/f55261469be8/b4af63da9d94/62f2e79cf9f4/d7afdf360f4a/bfd0feb1b109/cb4daf271302

Timelineinfo

02/20/2024 🔍
02/29/2024 +9 days 🔍
02/29/2024 +0 days 🔍
01/14/2025 +320 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2023-52486 (🔍)
GCVE (CVE): GCVE-0-2023-52486
GCVE (VulDB): GCVE-100-255277

Entryinfo

Created: 02/29/2024 17:20
Updated: 01/14/2025 16:18
Changes: 02/29/2024 17:20 (44), 06/26/2024 09:28 (15), 01/07/2025 09:07 (3), 01/14/2025 16:18 (11)
Complete: 🔍
Cache ID: 216:C2C:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!