ptp_qoriq: fix memory leak in probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7f4399ba405b6201fb318b43091703a34b1489ab · < f33642224e38d7e0d59336e10e7b4e370b1c4506| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ptp_qoriq: fix memory leak in probe()
Smatch complains that: drivers/ptp/ptp_qoriq.c ptp_qoriq_probe() warn: 'base' from ioremap() not released.
Fix this by revising the parameter from 'ptp_qoriq->base' to 'base'. This is only a bug if ptp_qoriq_init() returns on the first -ENODEV error path. For other error paths ptp_qoriq->base and base are the same. And this change makes the code more readable.
From the CVE record · Linux
The Linux kernel's ptp_qoriq probe can leak an ioremap mapping if ptp_qoriq_init() returns on its first -ENODEV error path. The input does not describe how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ptp_qoriq driver should check their versions; affected versions were not specified.