interconnect: debugfs: initialize src_node and dst_node to empty strings
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
interconnect: debugfs: initialize src_node and dst_node to empty strings
The debugfs_create_str() API assumes that the string pointer is either NULL or points to valid kmalloc() memory. Leaving the pointer uninitialized can cause problems.
Initialize src_node and dst_node to empty strings before creating the debugfs entries to guarantee that reads and writes are safe.
From the CVE record · Linux
The Linux kernel interconnect debugfs code leaves src_node and dst_node string pointers uninitialized, even though debugfs_create_str() requires them to be NULL or point to valid kmalloc() memory. This can make reads and writes unsafe; the input does not specify attacker capabilities or access requirements.
Engineers running the Linux kernel should check their versions; affected versions are not specified.