CVE-2024-58085: tomoyo: don't emit warning in tomoyo_write_control()

Published Mar 6, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tomoyo: don't emit warning in tomoyowritecontrol()

syzbot is reporting too large allocation warning at tomoyowritecontrol(), for one can write a very very long line without new line character. To fix this warning, I use GFPNOWARN rather than checking for KMALLOCMAXSIZE, 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 KMALLOCMAXSIZE is redundant. There is no need to distinguish over-32KB and over-KMALLOCMAXSIZE.

Affected Software

8 affected components
Linux Kernel
Linux Linux kernel<5.4.291
Linux Linux kernel>=5.5<5.10.235
Linux Linux kernel>=5.11<5.15.179
Linux Linux kernel>=5.16<6.1.129
Linux Linux kernel>=6.2<6.6.78
Linux Linux kernel>=6.7<6.12.14
Linux Linux kernel>=6.13<6.13.3

Event History

Mar 6, 2025
CVE Published
via MITRE·04:22 PM
Data Sourced
via MITRE·04:22 PM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-58085?

CVE-2024-58085 has been classified as a low severity vulnerability due to its specific conditions and impact.

2

How do I fix CVE-2024-58085?

To fix CVE-2024-58085, update the Linux kernel to the patched version as released by the maintainers.

3

Which versions of the Linux kernel are affected by CVE-2024-58085?

CVE-2024-58085 affects specific versions of the Linux kernel prior to the fix that resolves the warning in tomoyo_write_control().

4

What is the primary impact of CVE-2024-58085?

The primary impact of CVE-2024-58085 is an inappropriate warning message generated when writing excessively long lines in tomoyo_write_control().

5

Is CVE-2024-58085 remotely exploitable?

CVE-2024-58085 is not considered remotely exploitable as it requires local access to the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203