rxrpc, afs: Fix missing error pointer check after rxrpc_kernel_lookup_peer()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rxrpc, afs: Fix missing error pointer check after rxrpc_kernel_lookup_peer()
rxrpc_kernel_lookup_peer() can also return error pointers in addition to NULL, so just checking for NULL is not sufficient.
Fix this by:
(1) Changing rxrpc_kernel_lookup_peer() to return -ENOMEM rather than NULL on allocation failure.
(2) Making the callers in afs use IS_ERR() and PTR_ERR() to pass on the error code returned.
From the CVE record · Linux
The Linux kernel's rxrpc peer lookup can return an error pointer that callers in afs fail to check. The input does not establish what an attacker can do or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.