CVE-2024-41087: ata: libata-core: Fix double free on error
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.24% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 010de9acbea58fbcbda08e3793d6262086a493fe, 062e256516d7db5e7dcdef117f52025cd5c456e3, 290073b2b557e4dc21ee74a1e403d9ae79e393a2; azl3 kernel 6.6.35.1-5 on Azure Linux 3.0 6.6.43.1-7; azl3 kernel 6.6.43.1-7 on Azure Linux 3.0 6.6.43.1-7.
Low priority for now. Upgrade to Linux Linux 010de9acbea58fbcbda08e3793d6262086a493fe, 062e256516d7db5e7dcdef117f52025cd5c456e3, 290073b2b557e4dc21ee74a1e403d9ae79e393a2; azl3 kernel 6.6.35.1-5 on Azure Linux 3.0 6.6.43.1-7; azl3 kernel 6.6.43.1-7 on Azure Linux 3.0 6.6.43.1-7 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: ata: libata-core: Fix double free on error If e.g. the ata_port_alloc() call in ata_host_alloc() fails, we will jump to the err_out label, which will call devres_release_group(). devres_release_group() will trigger a call to ata_host_release(). ata_host_release() calls kfree(host), so executing the kfree(host) in ata_host_alloc() will lead to a double free: kernel BUG at mm/slub.c:553! Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI CPU: 11 PID: 599 Comm: (udev-worker) Not tainted 6.10.0-rc5 #47 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014 RIP: 0010:kfree+0x2cf/0x2f0 Code: 5d 41 5e 41 5f 5d e9 80 d6 ff ff 4d 89 f1 41 b8 01 00 00 00 48 89 d9 48 89 da RSP: 0018:ffffc90000f377f0 EFLAGS: 00010246 RAX: ffff888112b1f2c0 RBX: ffff888112b1f2c0 RCX: ffff888112b1f320 RDX: 000000000000400b RSI: ffffffffc02c9de5 RDI: ffff888112b1f2c0 RBP: ffffc90000f37830 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc90000f37610 R11: 617461203a736b6e R12: ffffea00044ac780 R13: ffff888100046400 R14: ffffffffc02c9de5 R15: 0000000000000006 FS: 00007f2f1cabe980(0000) GS:ffff88813b380000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2f1c3acf75 CR3: 0000000111724000 CR4: 0000000000750ef0 PKRU: 55555554 Call Trace: <TASK> ? __die_body.cold+0x19/0x27 ? die+0x2e/0x50 ? do_trap+0xca/0x110 ? do_error_trap+0x6a/0x90 ? kfree+0x2cf/0x2f0 ? exc_invalid_op+0x50/0x70 ? kfree+0x2cf/0x2f0 ? asm_exc_invalid_op+0x1a/0x20 ? ata_host_alloc+0xf5/0x120 [libata] ? ata_host_alloc+0xf5/0x120 [libata] ? kfree+0x2cf/0x2f0 ata_host_alloc+0xf5/0x120 [libata] ata_host_alloc_pinfo+0x14/0xa0 [libata] ahci_init_one+0x6c9/0xd20 [ahci] Ensure that we will not call kfree(host) twice, by performing the kfree() only if the devres_open_group() call failed.
- Published
- Jul 29, 2024
- Updated
- Aug 5, 2026
- EPSS
- 0.2% · 15th percentile
- CWE
- CWE-415
Report tools
Action score
31
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.8
- CNA · Linux
- 7.8
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 4.17affected
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 290073b2b557e4dc21ee74a1e403d9ae79e393a2affected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 56f1c7e290cd6c69c948fcd2e2a49e6a637ec38faffected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 010de9acbea58fbcbda08e3793d6262086a493feaffected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 5dde5f8b790274723640d29a07c5a97d57d62047affected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 702c1edbafb2e6f9d20f6d391273b5be09d366a5affected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 062e256516d7db5e7dcdef117f52025cd5c456e3affected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before 8106da4d88bbaed809e023cc8014b766223d6e76affected · git
- dafd6c496381c1cd1f5ba9ad953e810bdcc931bc and later · before ab9e0c529eb7cafebdd31fe1644524e80a48b05daffected · git
- before 4.17not affected · semver
Affected versions · NVD (7)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel4.17 and later · before 4.19.317
- linux linux kernel4.20 and later · before 5.4.279
- linux linux kernel5.5 and later · before 5.10.221
- linux linux kernel5.11 and later · before 5.15.162
- linux linux kernel5.16 and later · before 6.1.97
- linux linux kernel6.2 and later · before 6.6.37
- linux linux kernel6.7 and later · before 6.9.8
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.98-1 | 6.1.98-1 |
| Debian:13 | linux | before 6.9.8-1 | 6.9.8-1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-default-base | before 5.3.18-150200.24.206.1.150200.9.107.1 | 5.3.18-150200.24.206.1.150200.9.107.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-docs | before 5.3.18-150200.24.206.1 | 5.3.18-150200.24.206.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-obs-build | before 5.3.18-150200.24.206.1 | 5.3.18-150200.24.206.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-preempt | before 5.3.18-150200.24.206.1 | 5.3.18-150200.24.206.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-source | before 5.3.18-150200.24.206.1 | 5.3.18-150200.24.206.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-syms | before 5.3.18-150200.24.206.1 | 5.3.18-150200.24.206.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-64kb | before 5.3.18-150300.59.179.1 | 5.3.18-150300.59.179.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-default-base | before 5.3.18-150300.59.179.1.150300.18.105.2 | 5.3.18-150300.59.179.1.150300.18.105.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-docs | before 5.3.18-150300.59.179.1 | 5.3.18-150300.59.179.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-obs-build | before 5.3.18-150300.59.179.1 | 5.3.18-150300.59.179.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-preempt | before 5.3.18-150300.59.179.1 | 5.3.18-150300.59.179.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-source | before 5.3.18-150300.59.179.1 | 5.3.18-150300.59.179.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-syms | before 5.3.18-150300.59.179.1 | 5.3.18-150300.59.179.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-64kb | before 5.14.21-150400.24.147.1 | 5.14.21-150400.24.147.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-64kb | before 5.14.21-150400.24.136.1 | 5.14.21-150400.24.136.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-docs | before 5.14.21-150400.24.147.1 | 5.14.21-150400.24.147.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-docs | before 5.14.21-150400.24.136.1 | 5.14.21-150400.24.136.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-obs-build | before 5.14.21-150400.24.147.1 | 5.14.21-150400.24.147.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-obs-build | before 5.14.21-150400.24.136.1 | 5.14.21-150400.24.136.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | before 5.14.21-150400.24.136.1 | 5.14.21-150400.24.136.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | before 5.14.21-150400.24.147.1 | 5.14.21-150400.24.147.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-syms | before 5.14.21-150400.24.136.1 | 5.14.21-150400.24.136.1 |
+14
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2024-41084Jul 29, 2024 · cxl/region: Avoid null pointer dereference in region lookup22Monitor
- ← EarlierCVE-2024-41086Jul 29, 2024 · bcachefs: Fix sb_field_downgrade validation22Monitor
- Later →CVE-2024-41088Jul 29, 2024 · can: mcp251xfd: fix infinite loop when xmit fails22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 010de9acbea58fbcbda08e3793d6262086a493fe | Vendor (CNA) |
| Linux Linux | 062e256516d7db5e7dcdef117f52025cd5c456e3 | Vendor (CNA) |
| Linux Linux | 290073b2b557e4dc21ee74a1e403d9ae79e393a2 | Vendor (CNA) |
| Linux Linux | 56f1c7e290cd6c69c948fcd2e2a49e6a637ec38f | Vendor (CNA) |
| Linux Linux | 5dde5f8b790274723640d29a07c5a97d57d62047 | Vendor (CNA) |
| Linux Linux | 702c1edbafb2e6f9d20f6d391273b5be09d366a5 | Vendor (CNA) |
| Linux Linux | 8106da4d88bbaed809e023cc8014b766223d6e76 | Vendor (CNA) |
| Linux Linux | ab9e0c529eb7cafebdd31fe1644524e80a48b05d | Vendor (CNA) |
| azl3 kernel 6.6.35.1-5 on Azure Linux 3.0 | 6.6.43.1-7 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 kernel 6.6.43.1-7 on Azure Linux 3.0 | 6.6.43.1-7 · CBL-Mariner Releases | Microsoft (MSRC) |
| debian:linux | 6.1.98-1 · Debian:12 | Package registry (OSV) |
| suse:kernel-64kb | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:kernel-default | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
| suse:kernel-default-base | 5.14.21-150400.24.136.1.150400.24.66.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
| suse:kernel-docs | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:kernel-livepatch-SLE15-SP2_Update_53 | 1-150200.5.3.1 · SUSE:Linux Enterprise Live Patching 15 SP2 | Package registry (OSV) |
| suse:kernel-livepatch-SLE15-SP3_Update_49 | 1-150300.7.3.2 · SUSE:Linux Enterprise Live Patching 15 SP3 | Package registry (OSV) |
| suse:kernel-livepatch-SLE15-SP4_Update_32 | 1-150400.9.3.1 · SUSE:Linux Enterprise Live Patching 15 SP4 | Package registry (OSV) |
| suse:kernel-obs-build | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:kernel-preempt | 5.3.18-150200.24.206.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Package registry (OSV) |
| suse:kernel-source | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:kernel-syms | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:kernel-zfcpdump | 5.14.21-150400.24.136.1 · SUSE:Linux Enterprise Server 15 SP4-LTSS | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2024-3581473 days apartswiotlb: Fix double-allocation of slots due to broken alignment handling35Monitor
- CVE-2024-410460 days apartnet: ethernet: lantiq_etop: fix double free in detach31Monitor
- CVE-2024-410730 days apartnvme: avoid double free special payload31Monitor
- CVE-2024-421381 days apartmlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file31Monitor
- CVE-2024-421471 days apartcrypto: hisilicon/debugfs - Fix debugfs uninit process issue31Monitor
- CVE-2024-4094017 days apartnet/mlx5: Fix tainted pointer delete is case of flow rules creation fail31Monitor
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-415 · Double FreeCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- git.kernel.org/stable/c/062e256516d7db5e7dcdef117f52025cd5c456e3
- git.kernel.org/stable/c/290073b2b557e4dc21ee74a1e403d9ae79e393a2
- git.kernel.org/stable/c/56f1c7e290cd6c69c948fcd2e2a49e6a637ec38f
- git.kernel.org/stable/c/5dde5f8b790274723640d29a07c5a97d57d62047
- git.kernel.org/stable/c/702c1edbafb2e6f9d20f6d391273b5be09d366a5
- git.kernel.org/stable/c/8106da4d88bbaed809e023cc8014b766223d6e76
- git.kernel.org/stable/c/ab9e0c529eb7cafebdd31fe1644524e80a48b05d
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.