dm raid1: reserve space for NUL-terminator in build_constructor_string()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f5db4af466e2dca0fe822019812d586ca910b00c · < 644140527ae494cedf3b5c0ecd16287deaea7a66| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dm raid1: reserve space for NUL-terminator in build_constructor_string()
Reserve space for the termination NUL after the maximum 20 decimal digits of a long long value to avoid buffer overflow in sprintf().
From the CVE record · Linux
The Linux kernel’s dm raid1 build_constructor_string() function did not reserve space for a NUL terminator after the maximum 20 decimal digits of a long long value, allowing sprintf() to overflow a buffer. The input does not specify how an attacker could trigger this, whether authentication or user interaction is required, or the impact beyond the buffer overflow.
Engineers running the Linux kernel should check whether their version includes the dm raid1 fix; affected versions are not specified.