Linux Kernel up to 6.1.128/6.6.77/6.12.13/6.13.2 tomoyo_write_control allocation of resources

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.4$0-$5k0.00

Summaryinfo

A vulnerability has been found in Linux Kernel up to 6.1.128/6.6.77/6.12.13/6.13.2 and classified as problematic. This affects the function tomoyo_write_control. This manipulation causes allocation of resources. This vulnerability is handled as CVE-2024-58085. There is not any exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability was found in Linux Kernel up to 6.1.128/6.6.77/6.12.13/6.13.2. It has been declared as problematic. Affected by this vulnerability is the function tomoyo_write_control. The manipulation with an unknown input leads to a allocation of resources vulnerability. The CWE definition for the vulnerability is CWE-770. The product allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor. The impact remains unknown. The summary by CVE is:

In the Linux kernel, the following vulnerability has been resolved: tomoyo: don't emit warning in tomoyo_write_control() syzbot is reporting too large allocation warning at tomoyo_write_control(), for one can write a very very long line without new line character. To fix this warning, I use __GFP_NOWARN rather than checking for KMALLOC_MAX_SIZE, for practically a valid line should be always shorter than 32KB where the "too small to fail" memory-allocation rule applies. One might try to write a valid line that is longer than 32KB, but such request will likely fail with -ENOMEM. Therefore, I feel that separately returning -EINVAL when a line is longer than KMALLOC_MAX_SIZE is redundant. There is no need to distinguish over-32KB and over-KMALLOC_MAX_SIZE.

The advisory is shared at git.kernel.org. This vulnerability is known as CVE-2024-58085 since 03/06/2025. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 232254 (Linux Distros Unpatched Vulnerability : CVE-2024-58085), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 6.1.129, 6.6.78, 6.12.14, 6.13.3 or 6.14-rc1 eliminates this vulnerability. Applying the patch a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f/fe1c021eb03dae0dc9dce55e81f77a60e419a27a/c9382f380e8d09209b8e5c0def0545852168be25/414705c0303350d139b1dc18f329fe47dfb642dd/3df7546fc03b8f004eee0b9e3256369f7d096685 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 databases at Tenable (232254) and CERT Bund (WID-SEC-2025-0499). If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Affected

  • Google Container-Optimized OS
  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • RESF Rocky Linux
  • SolarWinds Security Event Manager
  • Open Source Linux Kernel
  • Dell Secure Connect Gateway

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.5
VulDB Meta Temp Score: 5.4

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
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: Allocation of resources
CWE: CWE-770 / CWE-400 / 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: 232254
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2024-58085

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 6.1.129/6.6.78/6.12.14/6.13.3/6.14-rc1
Patch: a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f/fe1c021eb03dae0dc9dce55e81f77a60e419a27a/c9382f380e8d09209b8e5c0def0545852168be25/414705c0303350d139b1dc18f329fe47dfb642dd/3df7546fc03b8f004eee0b9e3256369f7d096685

Timelineinfo

03/06/2025 🔍
03/06/2025 +0 days 🔍
03/06/2025 +0 days 🔍
02/16/2026 +347 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2024-58085 (🔍)
GCVE (CVE): GCVE-0-2024-58085
GCVE (VulDB): GCVE-100-298861
CERT Bund: WID-SEC-2025-0499 - Linux Kernel: Mehrere Schwachstellen

Entryinfo

Created: 03/06/2025 18:20
Updated: 02/16/2026 21:53
Changes: 03/06/2025 18:20 (57), 03/07/2025 16:22 (2), 10/31/2025 17:32 (11), 02/16/2026 21:53 (7)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!