rtc: pl031: fix rtc features null pointer dereference
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:
rtc: pl031: fix rtc features null pointer dereference
When there is no interrupt line, rtc alarm feature is disabled.
The clearing of the alarm feature bit was being done prior to allocations of ldata->rtc device, resulting in a null pointer dereference.
Clear RTC_FEATURE_ALARM after the rtc device is allocated.
From the CVE record · Linux
The Linux kernel pl031 RTC driver can dereference a null pointer when no interrupt line is present because it clears the alarm feature before allocating the RTC device. This may cause a crash; the input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running the Linux kernel with the pl031 RTC driver should check their installations; affected versions were not provided.