NetSight
high7.8

CVE-2024-38541

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 happ…

Impact

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

VendorProductAffected versions
LinuxLinux Kernel
from 4.14 before 5.4.294
from 5.5 before 5.10.238
from 5.11 before 5.15.182
from 5.16 before 6.1.136
from 6.2 before 6.6.33
from 6.7 before 6.8.12

Weakness classification

References