net: qrtr: ns: Limit the maximum server registration per node
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0c2204a4ad710d95d348ea006f14ba926e842ffd · < 35fb4a0c077c5d1049c2628b769e0a1b1e65df0d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: qrtr: ns: Limit the maximum server registration per node
Current code does no bound checking on the number of servers added per node. A malicious client can flood NEW_SERVER messages and exhaust memory.
Fix this issue by limiting the maximum number of server registrations to 256 per node. If the NEW_SERVER message is received for an old port, then don't restrict it as it will get replaced. While at it, also rate limit the error messages in the failure path of qrtr_ns_worker().
Note that the limit of 256 is chosen based on the current platform requirements. If requirement changes in the future, this limit can be increased.
From the CVE record · Linux
The Linux kernel QRTR name service did not limit server registrations per node. A malicious client able to send NEW_SERVER messages could exhaust memory by flooding it with registrations; the input does not specify authentication requirements or user interaction.
Operators running Linux kernels with the affected QRTR name service should check their kernel versions against the vendor advisory.