CVE-2024-58085
tomoyo: don't emit warning in tomoyo_write_control()
Mitigation
- Upgrade Linux to 3df7546fc03b8f004eee0b9e3256369f7d096685 or later.
Who should check
- Anyone running Linux >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c67efabddc73171c7771d3ffe4ffa1e503ee533e; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < f6b37b3e12de638753bce79a2858070b9c4a4ad3; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < b2bd5857a0d6973ebbcb4d9831ddcaebbd257be1; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < fe1c021eb03dae0dc9dce55e81f77a60e419a27a; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c9382f380e8d09209b8e5c0def0545852168be25; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 414705c0303350d139b1dc18f329fe47dfb642dd; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 3df7546fc03b8f004eee0b9e3256369f7d096685
- Anyone running Linux 3.1
Vulnerability facts
- Affected
- Linux >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c67efabddc73171c7771d3ffe4ffa1e503ee533e; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < f6b37b3e12de638753bce79a2858070b9c4a4ad3; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < b2bd5857a0d6973ebbcb4d9831ddcaebbd257be1; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < fe1c021eb03dae0dc9dce55e81f77a60e419a27a; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c9382f380e8d09209b8e5c0def0545852168be25; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 414705c0303350d139b1dc18f329fe47dfb642dd; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 3df7546fc03b8f004eee0b9e3256369f7d096685; Linux 3.1
- Fixed in
- Linux 414705c0303350d139b1dc18f329fe47dfb642dd, Linux 3df7546fc03b8f004eee0b9e3256369f7d096685
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c67efabddc73171c7771d3ffe4ffa1e503ee533e; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < f6b37b3e12de638753bce79a2858070b9c4a4ad3; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < b2bd5857a0d6973ebbcb4d9831ddcaebbd257be1; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < fe1c021eb03dae0dc9dce55e81f77a60e419a27a; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c9382f380e8d09209b8e5c0def0545852168be25; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 414705c0303350d139b1dc18f329fe47dfb642dd; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 3df7546fc03b8f004eee0b9e3256369f7d096685 | — | cvelist |
| Linux | 3.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-58085. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-58085.md Affected: Linux >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c67efabddc73171c7771d3ffe4ffa1e503ee533e; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < f6b37b3e12de638753bce79a2858070b9c4a4ad3; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < b2bd5857a0d6973ebbcb4d9831ddcaebbd257be1; >= bd03a3e4c9a9df0c6b00704… Fixed in: Linux 414705c0303350d139b1dc18f329fe47dfb642dd, Linux 3df7546fc03b8f004eee0b9e3256369f7d096685 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/c67efabddc73171c7771d3ffe4ffa1e503ee533e
- https://git.kernel.org/stable/c/f6b37b3e12de638753bce79a2858070b9c4a4ad3
- https://git.kernel.org/stable/c/b2bd5857a0d6973ebbcb4d9831ddcaebbd257be1
- https://git.kernel.org/stable/c/a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f
- https://git.kernel.org/stable/c/fe1c021eb03dae0dc9dce55e81f77a60e419a27a
- https://git.kernel.org/stable/c/c9382f380e8d09209b8e5c0def0545852168be25
- https://git.kernel.org/stable/c/414705c0303350d139b1dc18f329fe47dfb642dd
- https://git.kernel.org/stable/c/3df7546fc03b8f004eee0b9e3256369f7d096685
FAQ
Is CVE-2024-58085 being exploited?
There is no confirmed exploitation: CVE-2024-58085 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-58085?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-58085?
Linux >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c67efabddc73171c7771d3ffe4ffa1e503ee533e; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < f6b37b3e12de638753bce79a2858070b9c4a4ad3; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < b2bd5857a0d6973ebbcb4d9831ddcaebbd257be1; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < a01c200fa7eb59da4d2dbbb48b61f4a0d196c09f; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < fe1c021eb03dae0dc9dce55e81f77a60e419a27a; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < c9382f380e8d09209b8e5c0def0545852168be25; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 414705c0303350d139b1dc18f329fe47dfb642dd; >= bd03a3e4c9a9df0c6b007045fa7fc8889111a478, < 3df7546fc03b8f004eee0b9e3256369f7d096685; Linux 3.1.
Is there a fix for CVE-2024-58085?
Yes. Fixed in Linux 414705c0303350d139b1dc18f329fe47dfb642dd, Linux 3df7546fc03b8f004eee0b9e3256369f7d096685. Upgrade Linux to 3df7546fc03b8f004eee0b9e3256369f7d096685 or later.
How do I check if I'm affected by CVE-2024-58085?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.