Advisory
UBUNTU-CVE-2021-47413
Also known as: CVE-2021-47413
Summary
The record has no summary.
Details
In the Linux kernel, the following vulnerability has been resolved: usb: chipidea: ci_hdrc_imx: Also search for 'phys' phandle When passing 'phys' in the devicetree to describe the USB PHY phandle (which is the recommended way according to Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt) the following NULL pointer dereference is observed on i.MX7 and i.MX8MM: [ 1.489344] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000098 [ 1.498170] Mem abort info: [ 1.500966] ESR = 0x96000044 [ 1.504030] EC = 0x25: DABT (current EL), IL = 32 bits [ 1.509356] SET = 0, FnV = 0 [ 1.512416] EA = 0, S1PTW = 0 [ 1.515569] FSC = 0x04: level 0 translation fault [ 1.520458] Data abort info: [ 1.523349] ISV = 0, ISS = 0x00000044 [ 1.527196] CM = 0, WnR = 1 [ 1.530176] [0000000000000098] user address but active_mm is swapper [ 1.536544] Internal error: Oops: 96000044 [#1] PREEMPT SMP [ 1.542125] Modules linked in: [ 1.545190] CPU: 3 PID: 7 Comm: kworker/u8:0 Not tainted 5.14.0-dirty #3 [ 1.551901] Hardware name: Kontron i.MX8MM N801X S (DT) [ 1.557133] Workqueue: events_unbound deferred_probe_work_func [ 1.562984] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--) [ 1.568998] pc : imx7d_charger_detection+0x3f0/0x510 [ 1.573973] lr : imx7d_charger_detection+0x22c/0x510 This happens because the charger functions check for the phy presence inside the imx_usbmisc_data structure (data->usb_phy), but the chipidea core populates the usb_phy passed via 'phys' inside 'struct ci_hdrc' (ci->usb_phy) instead. This causes the NULL pointer dereference inside imx7d_charger_detection(). Fix it by also searching for 'phys' in case 'fsl,usbphy' is not found. Tested on a imx7s-warp board.
Severity
Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Dates
- Published
- 2024-05-21 15:15 UTC
- Modified
- 2025-10-24 04:52 UTC
Affected packages and fixes
| Package | System | Fix |
|---|---|---|
| linux-hwe-edge | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| linux-aws-5.0 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-aws-5.3 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-azure | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-azure-5.3 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-azure-edge | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-gcp | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-gcp-5.3 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-gke-4.15 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-gke-5.4 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-gkeop-5.4 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-hwe | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-hwe-edge | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-oem | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-oracle-5.0 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-oracle-5.3 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| linux-aws-5.11 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-aws-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-aws-5.8 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-azure-5.11 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-azure-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-azure-5.8 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-azure-fde | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-gcp-5.11 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-gcp-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-gcp-5.8 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-gke | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-gke-5.15 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-hwe-5.11 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-hwe-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-hwe-5.8 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-intel-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oem-5.10 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oem-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oem-5.14 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oem-5.6 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oracle-5.11 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oracle-5.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-oracle-5.8 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-raspi2 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-riscv-5.11 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-riscv-5.8 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| linux-allwinner-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-aws-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-aws-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-azure-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-azure-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-azure-fde-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-azure-fde-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-gcp-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-gcp-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-hwe-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-hwe-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-lowlatency-hwe-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-lowlatency-hwe-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-nvidia-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-oem-5.17 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-oem-6.0 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-oem-6.1 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-riscv-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-starfive-5.19 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| linux-starfive-6.2 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2021-47413
- https://www.cve.org/CVERecord?id=CVE-2021-47413
- https://git.kernel.org/linus/8253a34bfae3278baca52fc1209b7c29270486ca
- https://git.kernel.org/stable/c/b3265b88e83b16c7be762fa5fb7e0632bce0002c
- https://git.kernel.org/stable/c/66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b
- https://git.kernel.org/stable/c/8253a34bfae3278baca52fc1209b7c29270486ca
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0