CVE-2023-54257
kernel: Linux kernel: macb Ethernet driver memory corruption leads to denial of service.
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según Red Hat, Photon OS. Más baja según Ubuntu (media).
Descripción
In the Linux kernel, the following vulnerability has been resolved: net: macb: fix a memory corruption in extended buffer descriptor mode For quite some time we were chasing a bug which looked like a sudden permanent failure of networking and mmc on some of our devices. The bug was very sensitive to any software changes and even more to any kernel debug options. Finally we got a setup where the problem was reproducible with CONFIG_DMA_API_DEBUG=y and it revealed the issue with the rx dma: [ 16.992082] ------------[ cut here ]------------ [ 16.996779] DMA-API: macb ff0b0000.ethernet: device driver tries to free DMA memory it has not allocated [device address=0x0000000875e3e244] [size=1536 bytes] [ 17.011049] WARNING: CPU: 0 PID: 85 at kernel/dma/debug.c:1011 check_unmap+0x6a0/0x900 [ 17.018977] Modules linked in: xxxxx [ 17.038823] CPU: 0 PID: 85 Comm: irq/55-8000f000 Not tainted 5.4.0 #28 [ 17.045345] Hardware name: xxxxx [ 17.049528] pstate: 60000005 (nZCv daif -PAN -UAO) [ 17.054322] pc : check_unmap+0x6a0/0x900 [ 17.058243] lr : check_unmap+0x6a0/0x900 [ 17.062163] sp : ffffffc010003c40 [ 17.065470] x29: ffffffc010003c40 x28: 000000004000c03c [ 17.070783] x27: ffffffc010da7048 x26: ffffff8878e38800 [ 17.076095] x25: ffffff8879d22810 x24: ffffffc010003cc8 [ 17.081407] x23: 0000000000000000 x22: ffffffc010a08750 [ 17.086719] x21: ffffff8878e3c7c0 x20: ffffffc010acb000 [ 17.092032] x19: 0000000875e3e244 x18: 0000000000000010 [ 17.097343] x17: 0000000000000000 x16: 0000000000000000 [ 17.102647] x15: ffffff8879e4a988 x14: 0720072007200720 [ 17.107959] x13: 0720072007200720 x12: 0720072007200720 [ 17.113261] x11: 0720072007200720 x10: 0720072007200720 [ 17.118565] x9 : 0720072007200720 x8 : 000000000000022d [ 17.123869] x7 : 0000000000000015 x6 : 0000000000000098 [ 17.129173] x5 : 0000000000000000 x4 : 0000000000000000 [ 17.134475] x3 : 00000000ffffffff x2 : ffffffc010a1d370 [ 17.139778] x1 : b420c9d75d27bb00 x0 : 0000000000000000 [ 17.145082] Call trace: [ 17.147524] check_unmap+0x6a0/0x900 [ 17.151091] debug_dma_unmap_page+0x88/0x90 [ 17.155266] gem_rx+0x114/0x2f0 [ 17.158396] macb_poll+0x58/0x100 [ 17.161705] net_rx_action+0x118/0x400 [ 17.165445] __do_softirq+0x138/0x36c [ 17.169100] irq_exit+0x98/0xc0 [ 17.172234] __handle_domain_irq+0x64/0xc0 [ 17.176320] gic_handle_irq+0x5c/0xc0 [ 17.179974] el1_irq+0xb8/0x140 [ 17.183109] xiic_process+0x5c/0xe30 [ 17.186677] irq_thread_fn+0x28/0x90 [ 17.190244] irq_thread+0x208/0x2a0 [ 17.193724] kthread+0x130/0x140 [ 17.196945] ret_from_fork+0x10/0x20 [ 17.200510] ---[ end trace 7240980785f81d6f ]--- [ 237.021490] ------------[ cut here ]------------ [ 237.026129] DMA-API: exceeded 7 overlapping mappings of cacheline 0x0000000021d79e7b [ 237.033886] WARNING: CPU: 0 PID: 0 at kernel/dma/debug.c:499 add_dma_entry+0x214/0x240 [ 237.041802] Modules linked in: xxxxx [ 237.061637] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.0 #28 [ 237.068941] Hardware name: xxxxx [ 237.073116] pstate: 80000085 (Nzcv daIf -PAN -UAO) [ 237.077900] pc : add_dma_entry+0x214/0x240 [ 237.081986] lr : add_dma_entry+0x214/0x240 [ 237.086072] sp : ffffffc010003c30 [ 237.089379] x29: ffffffc010003c30 x28: ffffff8878a0be00 [ 237.094683] x27: 0000000000000180 x26: ffffff8878e387c0 [ 237.099987] x25: 0000000000000002 x24: 0000000000000000 [ 237.105290] x23: 000000000000003b x22: ffffffc010a0fa00 [ 237.110594] x21: 0000000021d79e7b x20: ffffffc010abe600 [ 237.115897] x19: 00000000ffffffef x18: 0000000000000010 [ 237.121201] x17: 0000000000000000 x16: 0000000000000000 [ 237.126504] x15: ffffffc010a0fdc8 x14: 0720072007200720 [ 237.131807] x13: 0720072007200720 x12: 0720072007200720 [ 237.137111] x11: 0720072007200720 x10: 0720072007200720 [ 237.142415] x9 : 0720072007200720 x8 : 0000000000000259 [ 237.147718] x7 : 0000000000000001 x6 : 0000000000000000 [ 237.15302 ---truncated---
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| Photon OS 4.0 | bpftool, linux, linux-devel y 7 más | 5.10.46-2.ph4 |
| debian 11 | linux | 5.10.178-1 |
| debian 12 | linux | 6.1.25-1 |
| debian 13 | linux | 6.1.25-1 |
| debian 14 | linux | 6.1.25-1 |
| echo | linux | 6.1.25-1 |
| root.io debian 11 | rootio-linux | 5.10.178-1 |
| root.io debian 12 | rootio-linux | 6.1.25-1 |
| root.io debian 13 | rootio-linux | 6.1.25-1 |
| root.io ubuntu 22.04 | rootio-linux | 5.15.0-79.86 |
| ubuntu 18.04-ESM | linux, linux-aws, linux-aws-5.4 y 10 más | 5.4.0-1107.115~18.04.1 y 6 más |
| ubuntu 20.04 | linux, linux-aws, linux-aws-5.15 y 18 más | 5.4.0-156.173 y 20 más |
Mostrar las 91 entradas de 14 fuentes
| Fuente | Paquete | Corregido en |
|---|---|---|
| Photon OS 4.0 | bpftool | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-devel | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-docs | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-drivers-gpu | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-drivers-intel-sgx | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-drivers-sound | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-oprofile | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-python3-perf | 5.10.46-2.ph4 |
| Photon OS 4.0 | linux-tools | 5.10.46-2.ph4 |
| debian 11 | linux | 5.10.178-1 |
| debian 12 | linux | 6.1.25-1 |
| debian 13 | linux | 6.1.25-1 |
| debian 14 | linux | 6.1.25-1 |
| echo | linux | 6.1.25-1 |
| root.io debian 11 | rootio-linux | 5.10.178-1 |
| root.io debian 12 | rootio-linux | 6.1.25-1 |
| root.io debian 13 | rootio-linux | 6.1.25-1 |
| root.io ubuntu 22.04 | rootio-linux | 5.15.0-79.86 |
| ubuntu 18.04-ESM | linux | sin corrección indicada |
| ubuntu 18.04-ESM | linux-aws | sin corrección indicada |
| ubuntu 18.04-ESM | linux-aws-5.4 | 5.4.0-1107.115~18.04.1 |
| ubuntu 18.04-ESM | linux-azure-4.15 | sin corrección indicada |
| ubuntu 18.04-ESM | linux-azure-5.4 | 5.4.0-1113.119~18.04.1 |
| ubuntu 18.04-ESM | linux-gcp-4.15 | sin corrección indicada |
| ubuntu 18.04-ESM | linux-gcp-5.4 | 5.4.0-1110.119~18.04.1 |
| ubuntu 18.04-ESM | linux-hwe-5.4 | 5.4.0-156.173~18.04.1 |
| ubuntu 18.04-ESM | linux-ibm-5.4 | 5.4.0-1054.59~18.04.1 |
| ubuntu 18.04-ESM | linux-kvm | sin corrección indicada |
| ubuntu 18.04-ESM | linux-oracle | sin corrección indicada |
| ubuntu 18.04-ESM | linux-oracle-5.4 | 5.4.0-1106.115~18.04.1 |
| ubuntu 18.04-ESM | linux-raspi-5.4 | 5.4.0-1091.102~18.04.1 |
| ubuntu 20.04 | linux | 5.4.0-156.173 |
| ubuntu 20.04 | linux-aws | 5.4.0-1107.115 |
| ubuntu 20.04 | linux-aws-5.15 | 5.15.0-1041.46~20.04.1 |
| ubuntu 20.04 | linux-azure | 5.4.0-1114.120 |
| ubuntu 20.04 | linux-azure-5.15 | 5.15.0-1045.52~20.04.1 |
| ubuntu 20.04 | linux-bluefield | 5.4.0-1068.74 |
| ubuntu 20.04 | linux-gcp | 5.4.0-1110.119 |
| ubuntu 20.04 | linux-gcp-5.15 | 5.15.0-1039.47~20.04.1 |
| ubuntu 20.04 | linux-hwe-5.15 | 5.15.0-79.86~20.04.2 |
| ubuntu 20.04 | linux-ibm | 5.4.0-1054.59 |
| ubuntu 20.04 | linux-ibm-5.15 | 5.15.0-1036.39~20.04.1 |
| ubuntu 20.04 | linux-intel-iotg-5.15 | 5.15.0-1037.42~20.04.1 |
| ubuntu 20.04 | linux-iot | 5.4.0-1019.20 |
| ubuntu 20.04 | linux-kvm | 5.4.0-1096.102 |
| ubuntu 20.04 | linux-lowlatency-hwe-5.15 | 5.15.0-79.88~20.04.1 |
| ubuntu 20.04 | linux-nvidia-tegra-5.15 | 5.15.0-1016.16~20.04.1 |
| ubuntu 20.04 | linux-oracle | 5.4.0-1106.115 |
| ubuntu 20.04 | linux-oracle-5.15 | 5.15.0-1040.46~20.04.1 |
| ubuntu 20.04 | linux-raspi | 5.4.0-1091.102 |
| ubuntu 20.04 | linux-riscv-5.15 | 5.15.0-1038.42~20.04.2 |
| ubuntu 20.04 | linux-xilinx-zynqmp | 5.4.0-1027.31 |
| ubuntu 20.04-ESM | linux | 5.4.0-156.173 |
| ubuntu 20.04-ESM | linux-aws | 5.4.0-1107.115 |
| ubuntu 20.04-ESM | linux-aws-5.15 | 5.15.0-1041.46~20.04.1 |
| ubuntu 20.04-ESM | linux-azure | 5.4.0-1114.120 |
| ubuntu 20.04-ESM | linux-azure-5.15 | 5.15.0-1045.52~20.04.1 |
| ubuntu 20.04-ESM | linux-bluefield | 5.4.0-1068.74 |
| ubuntu 20.04-ESM | linux-gcp | 5.4.0-1110.119 |
| ubuntu 20.04-ESM | linux-gcp-5.15 | 5.15.0-1039.47~20.04.1 |
| ubuntu 20.04-ESM | linux-hwe-5.15 | 5.15.0-79.86~20.04.2 |
| ubuntu 20.04-ESM | linux-ibm | 5.4.0-1054.59 |
| ubuntu 20.04-ESM | linux-ibm-5.15 | 5.15.0-1036.39~20.04.1 |
| ubuntu 20.04-ESM | linux-intel-iotg-5.15 | 5.15.0-1037.42~20.04.1 |
| ubuntu 20.04-ESM | linux-iot | 5.4.0-1019.20 |
| ubuntu 20.04-ESM | linux-kvm | 5.4.0-1096.102 |
| ubuntu 20.04-ESM | linux-lowlatency-hwe-5.15 | 5.15.0-79.88~20.04.1 |
| ubuntu 20.04-ESM | linux-nvidia-tegra-5.15 | 5.15.0-1016.16~20.04.1 |
| ubuntu 20.04-ESM | linux-oracle | 5.4.0-1106.115 |
| ubuntu 20.04-ESM | linux-oracle-5.15 | 5.15.0-1040.46~20.04.1 |
| ubuntu 20.04-ESM | linux-raspi | 5.4.0-1091.102 |
| ubuntu 20.04-ESM | linux-riscv-5.15 | 5.15.0-1038.42~20.04.2 |
| ubuntu 20.04-ESM | linux-xilinx-zynqmp | 5.4.0-1027.31 |
| ubuntu 22.04 | linux | 5.15.0-79.86 |
| ubuntu 22.04 | linux-aws | 5.15.0-1042.47 |
| ubuntu 22.04 | linux-azure | 5.15.0-1045.52 |
| ubuntu 22.04 | linux-azure-fde | 5.15.0-1045.52.1 |
| ubuntu 22.04 | linux-gcp | 5.15.0-1039.47 |
| ubuntu 22.04 | linux-gke | 5.15.0-1039.44 |
| ubuntu 22.04 | linux-gkeop | 5.15.0-1025.30 |
| ubuntu 22.04 | linux-ibm | 5.15.0-1035.38 |
| ubuntu 22.04 | linux-intel-iotg | 5.15.0-1037.42 |
| ubuntu 22.04 | linux-kvm | 5.15.0-1039.44 |
| ubuntu 22.04 | linux-lowlatency | 5.15.0-79.88 |
| ubuntu 22.04 | linux-nvidia | 5.15.0-1030.30 |
| ubuntu 22.04 | linux-nvidia-tegra | 5.15.0-1016.16 |
| ubuntu 22.04 | linux-nvidia-tegra-igx | 5.15.0-1002.2 |
| ubuntu 22.04 | linux-oracle | 5.15.0-1040.46 |
| ubuntu 22.04 | linux-raspi | 5.15.0-1035.38 |
| ubuntu 22.04 | linux-xilinx-zynqmp | 5.15.0-1025.29 |
Referencias
- https://access.redhat.com/security/cve/CVE-2023-54257
- https://git.kernel.org/linus/e8b74453555872851bdd7ea43a7c0ec39659834f%20%286.3-rc7%29
- https://git.kernel.org/stable/c/1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83
- https://git.kernel.org/stable/c/5dcf3a6843d0d7cc76960fbe8511d425f217744c
- https://git.kernel.org/stable/c/7169d1638824c4bf7e0fe0baad381ddec861fa70
- https://git.kernel.org/stable/c/7ccc58a1a75601c936069d4a0741940623990ade
- https://git.kernel.org/stable/c/82e626af24683e01211abe66cec27a387f8f17c9
- https://git.kernel.org/stable/c/9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47
Las 13 referencias
- https://git.kernel.org/stable/c/dd7a49a3eaf723a01b2fdf153f98450a82b0b0fe
- https://git.kernel.org/stable/c/e8b74453555872851bdd7ea43a7c0ec39659834f
- https://lore.kernel.org/linux-cve-announce/2025123056-CVE-2023-54257-9a92@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2023-54257
- https://www.cve.org/CVERecord?id=CVE-2023-54257