Skip to content
7.8 High

CVE-2024-38541 In the Linux kernel, the following vulnerability has been resolved: of: module: add buffer overflow check in…

Description

In the Linux kernel, the following vulnerability has been resolved: of: module: add buffer overflow check in of_modalias() In of_modalias(), if the buffer happens to be too small even for the 1st snprintf() call, the len parameter will become negative and str parameter (if not NULL initially) will point beyond the buffer's end. Add the buffer overflow check after the 1st snprintf() call and fix such check after the strlen() call (accounting for the terminating NUL char).

Affected products and versions

Product Affected versions Fixed in
Linux 6.10 earliest → < 6.10 6.10
Linux 6.9 earliest → < 6.9.3 6.9.3
Linux 6.8 earliest → < 6.8.12 6.8.12
Linux 6.6 earliest → < 6.6.33 6.6.33
Linux 6.1 earliest → < 6.1.136 6.1.136
Linux 5.15 earliest → < 5.15.182 5.15.182
Linux 5.10 earliest → < 5.10.238 5.10.238
Linux 5.4 earliest → < 5.4.294 5.4.294
Linux 4.14 No fix stated
Show the other branch
Product Affected versions Fixed in
linux_kernel 6.10 earliest → < 6.10-rc1 6.10-rc1

References

Timeline

  1. Published
  2. Last modified
The 18283 CVEs of Linux →
Track this CVE