# CVE-2024-53224: RDMA/mlx5: Move events notifier registration to be after device registration

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.46% (percentile 32, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-12-27T13:50:14.113Z
- **Modified:** 2026-10-30T13:17:46.010Z

## Who should check

- Anyone running Linux \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 542bd62b7a7f37182c9ef192c2bd25d118c144e4; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 6b0acf6a94c31efa43fce4edc22413a3390f9c05; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< ede132a5cf559f3ab35a4c28bac4f4a6c20334d8
- Anyone running Linux 4.6

## Description

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

RDMA/mlx5: Move events notifier registration to be after device registration

Move pkey change work initialization and cleanup from device resources
stage to notifier stage, since this is the stage which handles this work
events.

Fix a race between the device deregistration and pkey change work by moving
MLX5\_IB\_STAGE\_DEVICE\_NOTIFIER to be after MLX5\_IB\_STAGE\_IB\_REG in order to
ensure that the notifier is deregistered before the device during cleanup.
Which ensures there are no works that are being executed after the
device has already unregistered which can cause the panic below.

BUG: kernel NULL pointer dereference, address: 0000000000000000
PGD 0 P4D 0
Oops: 0000 \[\#1\] PREEMPT SMP PTI
CPU: 1 PID: 630071 Comm: kworker/1:2 Kdump: loaded Tainted: G W OE --------- --- 5.14.0-162.6.1.el9\_1.x86\_64 \#1
Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008 02/27/2023
Workqueue: events pkey\_change\_handler \[mlx5\_ib\]
RIP: 0010:setup\_qp+0x38/0x1f0 \[mlx5\_ib\]
Code: ee 41 54 45 31 e4 55 89 f5 53 48 89 fb 48 83 ec 20 8b 77 08 65 48 8b 04 25 28 00 00 00 48 89 44 24 18 48 8b 07 48 8d 4c 24 16 \<4c\> 8b 38 49 8b 87 80 0b 00 00 4c 89 ff 48 8b 80 08 05 00 00 8b 40
RSP: 0018:ffffbcc54068be20 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff954054494128 RCX: ffffbcc54068be36
RDX: ffff954004934000 RSI: 0000000000000001 RDI: ffff954054494128
RBP: 0000000000000023 R08: ffff954001be2c20 R09: 0000000000000001
R10: ffff954001be2c20 R11: ffff9540260133c0 R12: 0000000000000000
R13: 0000000000000023 R14: 0000000000000000 R15: ffff9540ffcb0905
FS: 0000000000000000(0000) GS:ffff9540ffc80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010625c001 CR4: 00000000003706e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
mlx5\_ib\_gsi\_pkey\_change+0x20/0x40 \[mlx5\_ib\]
process\_one\_work+0x1e8/0x3c0
worker\_thread+0x50/0x3b0
? rescuer\_thread+0x380/0x380
kthread+0x149/0x170
? set\_kthread\_struct+0x50/0x50
ret\_from\_fork+0x22/0x30
Modules linked in: rdma\_ucm(OE) rdma\_cm(OE) iw\_cm(OE) ib\_ipoib(OE) ib\_cm(OE) ib\_umad(OE) mlx5\_ib(OE) mlx5\_fwctl(OE) fwctl(OE) ib\_uverbs(OE) mlx5\_core(OE) mlxdevm(OE) ib\_core(OE) mlx\_compat(OE) psample mlxfw(OE) tls knem(OE) netconsole nfsv3 nfs\_acl nfs lockd grace fscache netfs qrtr rfkill sunrpc intel\_rapl\_msr intel\_rapl\_common rapl hv\_balloon hv\_utils i2c\_piix4 pcspkr joydev fuse ext4 mbcache jbd2 sr\_mod sd\_mod cdrom t10\_pi sg ata\_generic pci\_hyperv pci\_hyperv\_intf hyperv\_drm drm\_shmem\_helper drm\_kms\_helper hv\_storvsc syscopyarea hv\_netvsc sysfillrect sysimgblt hid\_hyperv fb\_sys\_fops scsi\_transport\_fc hyperv\_keyboard drm ata\_piix crct10dif\_pclmul crc32\_pclmul crc32c\_intel libata ghash\_clmulni\_intel hv\_vmbus serio\_raw \[last unloaded: ib\_core\]
CR2: 0000000000000000
---\[ end trace f6f8be4eae12f7bc \]---

## Affected and fixed versions

- Linux: \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 542bd62b7a7f37182c9ef192c2bd25d118c144e4; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 6b0acf6a94c31efa43fce4edc22413a3390f9c05; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< ede132a5cf559f3ab35a4c28bac4f4a6c20334d8 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-53224.md
Affected: Linux >= 7722f47e71e58592a2ba4437d27c802ba1c64e08, < 09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a; >= 7722f47e71e58592a2ba4437d27c802ba1c64e08, < 921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad; >= 7722f47e71e58592a2ba4437d27c802ba1c64e08, < 542bd62b7a7f37182c9ef192c2bd25d118c144e4; >= 7722f47e71e58592a2ba443…
Fixed in: Linux 09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a, Linux 921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad, Linux 542bd62b7a7f37182c9ef192c2bd25d118c144e4, Linux 6b0acf6a94c31efa43fce4edc22413a3390f9c05

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-53224 being exploited?

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 542bd62b7a7f37182c9ef192c2bd25d118c144e4; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< 6b0acf6a94c31efa43fce4edc22413a3390f9c05; \>= 7722f47e71e58592a2ba4437d27c802ba1c64e08, \< ede132a5cf559f3ab35a4c28bac4f4a6c20334d8; Linux 4.6.

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

Yes. Fixed in Linux 09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a, Linux 921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad, Linux 542bd62b7a7f37182c9ef192c2bd25d118c144e4, Linux 6b0acf6a94c31efa43fce4edc22413a3390f9c05. No fix listed yet: follow the vendor advisory.

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

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/921fcf2971a1e8d3b904ba2c2905b96f4ec3d4ad>
- patch: <https://git.kernel.org/stable/c/542bd62b7a7f37182c9ef192c2bd25d118c144e4>
- patch: <https://git.kernel.org/stable/c/6b0acf6a94c31efa43fce4edc22413a3390f9c05>
- patch: <https://git.kernel.org/stable/c/ede132a5cf559f3ab35a4c28bac4f4a6c20334d8>
- other: <https://git.kernel.org/stable/c/09ef1c03a7ac2b57be8aeb0c7a75d538ded2562a>

## 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-53224>

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