CVE-2024-41098 ata: libata-core: Fix null pointer dereference on error
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
ata: libata-core: Fix null pointer dereference on error
If the ata_port_alloc() call in ata_host_alloc() fails,
ata_host_release() will get called.
However, the code in ata_host_release() tries to free ata_port struct
members unconditionally, which can lead to the following:
BUG: unable to handle page fault for address: 0000000000003990
PGD 0 P4D 0
Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
CPU: 10 PID: 594 Comm: (udev-worker) Not tainted 6.10.0-rc5 #44
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014
RIP: 0010:ata_host_release.cold+0x2f/0x6e [libata]
Code: e4 4d 63 f4 44 89 e2 48 c7 c6 90 ad 32 c0 48 c7 c7 d0 70 33 c0 49 83 c6 0e 41
RSP: 0018:ffffc90000ebb968 EFLAGS: 00010246
RAX: 0000000000000041 RBX: ffff88810fb52e78 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88813b3218c0 RDI: ffff88813b3218c0
RBP: ffff88810fb52e40 R08: 0000000000000000 R09: 6c65725f74736f68
R10: ffffc90000ebb738 R11: 73692033203a746e R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000011 R15: 0000000000000006
FS: 00007f6cc55b9980(0000) GS:ffff88813b300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000003990 CR3: 00000001122a2000 CR4: 0000000000750ef0
PKRU: 55555554
Call Trace:
<TASK>
? __die_body.cold+0x19/0x27
? page_fault_oops+0x15a/0x2f0
? exc_page_fault+0x7e/0x180
? asm_exc_page_fault+0x26/0x30
? ata_host_release.cold+0x2f/0x6e [libata]
? ata_host_release.cold+0x2f/0x6e [libata]
release_nodes+0x35/0xb0
devres_release_group+0x113/0x140
ata_host_alloc+0xed/0x120 [libata]
ata_host_alloc_pinfo+0x14/0xa0 [libata]
ahci_init_one+0x6c9/0xd20 [ahci]
Do not access ata_port struct members unconditionally.
Upgrade path
11 packages: 11 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.112-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +26 more | 6.1.112-1 | Fixed |
| debian/linux(Debian 13) | < 6.9.8-1 | 6.9.8-1 | Fixed |
| debian/linux(Debian 14) | < 6.9.8-1 | 6.9.8-1 | Fixed |
| Linux kernel | < 4.19.321; < 5.4.283; < 5.10.225; < 5.15.166 +15 more | 0f0d37c154bb108730c90a91aa31e3170e827962, 4.19.321, 5.4.283, 5.10.225, 5.15.166, 5d92c7c566dc76d96e0e19e481d926bbe6631c1e, 6.1.108, 6.6.37, 6.9.8, 6.10, 8a8ff7e3b736a70d7b7c8764cbcd2724d4079ec8, 56e62977eaaae3eb7122ee2cf9b720b6703114a9, 119c97ace2a9ffcf4dc09a23bb057d6c281aff28, 221e3b1297e74fdec32d0f572f4dcb2260a0a2af, d9c4df80b1b009de1eb77c07e3bb4d45bd212aa5, e83405e75d90694ee6a5d898f7f0473ac2686054 | Fixed |
| Microsoft azure linux | < 6.6.43.1-7 | 6.6.43.1-7 | Fixed |
| Microsoft cbl mariner | < 5.15.167.1-2 | 5.15.167.1-2 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-125.135 | 5.15.0-125.135 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-48.48 | 6.8.0-48.48 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1069.74 | 5.15.0-1069.74 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1065.68 | 5.15.0-1065.68 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1014.16 | 6.8.0-1014.16 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.43.1-7 | 6.6.43.1-7 |
| Microsoft cbl mariner | < 5.15.167.1-2 | 5.15.167.1-2 |
| debian/linux(Debian:12) | < 6.1.112-1 | 6.1.112-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.9.8-1 | 6.9.8-1 |
| debian/linux(Debian:14) | < 6.9.8-1 | 6.9.8-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-125.135 | 5.15.0-125.135 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1069.74 | 5.15.0-1069.74 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1065.68 | 5.15.0-1065.68 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < d9c4df80b1b009de1eb77c07e3bb4d45bd212aa5 | d9c4df80b1b009de1eb77c07e3bb4d45bd212aa5 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < 56e62977eaaae3eb7122ee2cf9b720b6703114a9 | 56e62977eaaae3eb7122ee2cf9b720b6703114a9 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < e83405e75d90694ee6a5d898f7f0473ac2686054 | e83405e75d90694ee6a5d898f7f0473ac2686054 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < 221e3b1297e74fdec32d0f572f4dcb2260a0a2af | 221e3b1297e74fdec32d0f572f4dcb2260a0a2af |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < 0f0d37c154bb108730c90a91aa31e3170e827962 | 0f0d37c154bb108730c90a91aa31e3170e827962 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < 119c97ace2a9ffcf4dc09a23bb057d6c281aff28 | 119c97ace2a9ffcf4dc09a23bb057d6c281aff28 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < 8a8ff7e3b736a70d7b7c8764cbcd2724d4079ec8 | 8a8ff7e3b736a70d7b7c8764cbcd2724d4079ec8 |
| Linux kernel | >= 633273a3ed1cf37ced90475b0f95cf81deab04f1, < 5d92c7c566dc76d96e0e19e481d926bbe6631c1e | 5d92c7c566dc76d96e0e19e481d926bbe6631c1e |
| Linux kernel | = 2.6.24 | No fix listed |
| Linux kernel | < 4.19.321 | 4.19.321 |
| Linux kernel | < 5.4.283 | 5.4.283 |
| Linux kernel | < 5.10.225 | 5.10.225 |
| Linux kernel | < 5.15.166 | 5.15.166 |
| Linux kernel | < 6.1.108 | 6.1.108 |
| Linux kernel | < 6.6.37 | 6.6.37 |
| Linux kernel | < 6.9.8 | 6.9.8 |
| Linux kernel | < 6.10 | 6.10 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-48.48 | 6.8.0-48.48 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1014.16 | 6.8.0-1014.16 |
| Linux kernel | >= 2.6.24, < 6.6.37 | 6.6.37 |
| Linux kernel | >= 6.7, < 6.9.8 | 6.9.8 |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-41098 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7088-1 vendor-advisory
- USN-7089-1 vendor-advisory
- USN-7090-1 vendor-advisory
- USN-7088-2 vendor-advisory
- USN-7089-2 vendor-advisory
- USN-7088-3 vendor-advisory
- USN-7089-3 vendor-advisory
- USN-7095-1 vendor-advisory
- USN-7088-4 vendor-advisory
- USN-7100-1 vendor-advisory
- USN-7100-2 vendor-advisory
- USN-7089-4 vendor-advisory
- USN-7089-5 vendor-advisory
- USN-7088-5 vendor-advisory
- USN-7089-6 vendor-advisory
- USN-7119-1 vendor-advisory
- USN-7089-7 vendor-advisory
- USN-7123-1 vendor-advisory
- USN-7144-1 vendor-advisory
- USN-7156-1 vendor-advisory
- USN-7194-1 vendor-advisory
- www.cve.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- lists.debian.org