# CVE-2024-49953: net/mlx5e: Fix crash caused by calling \_\_xfrm\_state\_delete() twice

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-672
- **Published:** 2024-10-21T18:02:08.381Z
- **Modified:** 2026-06-17T08:00:48.713Z

## Who should check

- Anyone running Linux \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< fab615ac9fcb8589222303099975d464d8857527; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 0b1672834634df9ac9cedf856db9fc36d92c50ef; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 151e7dead1f5399a73c19c4b50307ea48aff1dc0; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 7b124695db40d5c9c5295a94ae928a8d67a01c3d
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Fix crash caused by calling \_\_xfrm\_state\_delete() twice

The km.state is not checked in driver's delayed work. When
xfrm\_state\_check\_expire() is called, the state can be reset to
XFRM\_STATE\_EXPIRED, even if it is XFRM\_STATE\_DEAD already. This
happens when xfrm state is deleted, but not freed yet. As
\_\_xfrm\_state\_delete() is called again in xfrm timer, the following
crash occurs.

To fix this issue, skip xfrm\_state\_check\_expire() if km.state is not
XFRM\_STATE\_VALID.

 Oops: general protection fault, probably for non-canonical address 0xdead000000000108: 0000 \[\#1\] SMP
 CPU: 5 UID: 0 PID: 7448 Comm: kworker/u102:2 Not tainted 6.11.0-rc2+ \#1
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
 Workqueue: mlx5e\_ipsec: eth%d mlx5e\_ipsec\_handle\_sw\_limits \[mlx5\_core\]
 RIP: 0010:\_\_xfrm\_state\_delete+0x3d/0x1b0
 Code: 0f 84 8b 01 00 00 48 89 fd c6 87 c8 00 00 00 05 48 8d bb 40 10 00 00 e8 11 04 1a 00 48 8b 95 b8 00 00 00 48 8b 85 c0 00 00 00 \<48\> 89 42 08 48 89 10 48 8b 55 10 48 b8 00 01 00 00 00 00 ad de 48
 RSP: 0018:ffff88885f945ec8 EFLAGS: 00010246
 RAX: dead000000000122 RBX: ffffffff82afa940 RCX: 0000000000000036
 RDX: dead000000000100 RSI: 0000000000000000 RDI: ffffffff82afb980
 RBP: ffff888109a20340 R08: ffff88885f945ea0 R09: 0000000000000000
 R10: 0000000000000000 R11: ffff88885f945ff8 R12: 0000000000000246
 R13: ffff888109a20340 R14: ffff88885f95f420 R15: ffff88885f95f400
 FS:  0000000000000000(0000) GS:ffff88885f940000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007f2163102430 CR3: 00000001128d6001 CR4: 0000000000370eb0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  \<IRQ\>
  ? die\_addr+0x33/0x90
  ? exc\_general\_protection+0x1a2/0x390
  ? asm\_exc\_general\_protection+0x22/0x30
  ? \_\_xfrm\_state\_delete+0x3d/0x1b0
  ? \_\_xfrm\_state\_delete+0x2f/0x1b0
  xfrm\_timer\_handler+0x174/0x350
  ? \_\_xfrm\_state\_delete+0x1b0/0x1b0
  \_\_hrtimer\_run\_queues+0x121/0x270
  hrtimer\_run\_softirq+0x88/0xd0
  handle\_softirqs+0xcc/0x270
  do\_softirq+0x3c/0x50
  \</IRQ\>
  \<TASK\>
  \_\_local\_bh\_enable\_ip+0x47/0x50
  mlx5e\_ipsec\_handle\_sw\_limits+0x7d/0x90 \[mlx5\_core\]
  process\_one\_work+0x137/0x2d0
  worker\_thread+0x28d/0x3a0
  ? rescuer\_thread+0x480/0x480
  kthread+0xb8/0xe0
  ? kthread\_park+0x80/0x80
  ret\_from\_fork+0x2d/0x50
  ? kthread\_park+0x80/0x80
  ret\_from\_fork\_asm+0x11/0x20
  \</TASK\>

## Affected and fixed versions

- Linux: \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< fab615ac9fcb8589222303099975d464d8857527; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 0b1672834634df9ac9cedf856db9fc36d92c50ef; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 151e7dead1f5399a73c19c4b50307ea48aff1dc0; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 7b124695db40d5c9c5295a94ae928a8d67a01c3d (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 7b124695db40d5c9c5295a94ae928a8d67a01c3d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-49953. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49953.md
Affected: Linux >= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, < fab615ac9fcb8589222303099975d464d8857527; >= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, < 0b1672834634df9ac9cedf856db9fc36d92c50ef; >= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, < 151e7dead1f5399a73c19c4b50307ea48aff1dc0; >= b2f7b01d36a9b94fbd7489b…
Fixed in: Linux 0b1672834634df9ac9cedf856db9fc36d92c50ef, Linux 151e7dead1f5399a73c19c4b50307ea48aff1dc0, Linux 7b124695db40d5c9c5295a94ae928a8d67a01c3d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-49953 being exploited?

There is no confirmed exploitation: CVE-2024-49953 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-49953?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-49953?

Linux \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< fab615ac9fcb8589222303099975d464d8857527; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 0b1672834634df9ac9cedf856db9fc36d92c50ef; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 151e7dead1f5399a73c19c4b50307ea48aff1dc0; \>= b2f7b01d36a9b94fbd7489bd1228025ea7e7a2f4, \< 7b124695db40d5c9c5295a94ae928a8d67a01c3d; Linux 6.4.

### Is there a fix for CVE-2024-49953?

Yes. Fixed in Linux 0b1672834634df9ac9cedf856db9fc36d92c50ef, Linux 151e7dead1f5399a73c19c4b50307ea48aff1dc0, Linux 7b124695db40d5c9c5295a94ae928a8d67a01c3d. Upgrade Linux to 7b124695db40d5c9c5295a94ae928a8d67a01c3d or later.

### How do I check if I'm affected by CVE-2024-49953?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/fab615ac9fcb8589222303099975d464d8857527>
- patch: <https://git.kernel.org/stable/c/0b1672834634df9ac9cedf856db9fc36d92c50ef>
- patch: <https://git.kernel.org/stable/c/151e7dead1f5399a73c19c4b50307ea48aff1dc0>
- patch: <https://git.kernel.org/stable/c/7b124695db40d5c9c5295a94ae928a8d67a01c3d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49953>

HTML: <https://flawdb.com/CVE-2024-49953> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49953>
