# CVE-2023-54274: RDMA/srpt: Add a check for valid 'mad\_agent' pointer

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:16:03.696Z
- **Modified:** 2026-06-17T06:47:08.293Z

## Who should check

- Anyone running Linux \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 4323aaedeba32076e652aad056afd7885bb96bb7; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< b713623bfef8cb1df9c769a3887fa10db63d1c54; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< eca5cd9474cd26d62f9756f536e2e656d3f62f3a
- Anyone running Linux 3.3

## Description

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

RDMA/srpt: Add a check for valid 'mad\_agent' pointer

When unregistering MAD agent, srpt module has a non-null check
for 'mad\_agent' pointer before invoking ib\_unregister\_mad\_agent().
This check can pass if 'mad\_agent' variable holds an error value.
The 'mad\_agent' can have an error value for a short window when
srpt\_add\_one() and srpt\_remove\_one() is executed simultaneously.

In srpt module, added a valid pointer check for 'sport-\>mad\_agent'
before unregistering MAD agent.

This issue can hit when RoCE driver unregisters ib\_device

Stack Trace:
------------
BUG: kernel NULL pointer dereference, address: 000000000000004d
PGD 145003067 P4D 145003067 PUD 2324fe067 PMD 0
Oops: 0002 \[\#1\] PREEMPT SMP NOPTI
CPU: 10 PID: 4459 Comm: kworker/u80:0 Kdump: loaded Tainted: P
Hardware name: Dell Inc. PowerEdge R640/06NR82, BIOS 2.5.4 01/13/2020
Workqueue: bnxt\_re bnxt\_re\_task \[bnxt\_re\]
RIP: 0010:\_raw\_spin\_lock\_irqsave+0x19/0x40
Call Trace:
  ib\_unregister\_mad\_agent+0x46/0x2f0 \[ib\_core\]
  IPv6: ADDRCONF(NETDEV\_CHANGE): bond0: link becomes ready
  ? \_\_schedule+0x20b/0x560
  srpt\_unregister\_mad\_agent+0x93/0xd0 \[ib\_srpt\]
  srpt\_remove\_one+0x20/0x150 \[ib\_srpt\]
  remove\_client\_context+0x88/0xd0 \[ib\_core\]
  bond0: (slave p2p1): link status definitely up, 100000 Mbps full duplex
  disable\_device+0x8a/0x160 \[ib\_core\]
  bond0: active interface up!
  ? kernfs\_name\_hash+0x12/0x80
 (NULL device \*): Bonding Info Received: rdev: 000000006c0b8247
  \_\_ib\_unregister\_device+0x42/0xb0 \[ib\_core\]
 (NULL device \*):         Master: mode: 4 num\_slaves:2
  ib\_unregister\_device+0x22/0x30 \[ib\_core\]
 (NULL device \*):         Slave: id: 105069936 name:p2p1 link:0 state:0
  bnxt\_re\_stopqps\_and\_ib\_uninit+0x83/0x90 \[bnxt\_re\]
  bnxt\_re\_alloc\_lag+0x12e/0x4e0 \[bnxt\_re\]

## Affected and fixed versions

- Linux: \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 4323aaedeba32076e652aad056afd7885bb96bb7; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< b713623bfef8cb1df9c769a3887fa10db63d1c54; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< eca5cd9474cd26d62f9756f536e2e656d3f62f3a (cvelist)
- Linux: 3.3 (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-2023-54274. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54274.md
Affected: Linux >= a42d985bd5b234da8b61347a78dc3057bf7bb94d, < 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe; >= a42d985bd5b234da8b61347a78dc3057bf7bb94d, < 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba; >= a42d985bd5b234da8b61347a78dc3057bf7bb94d, < 4323aaedeba32076e652aad056afd7885bb96bb7; >= a42d985bd5b234da8b61347…
Fixed in: Linux 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe, Linux 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba, Linux 4323aaedeba32076e652aad056afd7885bb96bb7, Linux 5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9

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-2023-54274 being exploited?

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

### How serious is CVE-2023-54274?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54274?

Linux \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 4323aaedeba32076e652aad056afd7885bb96bb7; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< 5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< b713623bfef8cb1df9c769a3887fa10db63d1c54; \>= a42d985bd5b234da8b61347a78dc3057bf7bb94d, \< eca5cd9474cd26d62f9756f536e2e656d3f62f3a; Linux 3.3.

### Is there a fix for CVE-2023-54274?

Yes. Fixed in Linux 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe, Linux 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba, Linux 4323aaedeba32076e652aad056afd7885bb96bb7, Linux 5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54274?

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

- other: <https://git.kernel.org/stable/c/8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe>
- other: <https://git.kernel.org/stable/c/00cc21e32ea1b8ebbabf5d645da9378d986bf8ba>
- other: <https://git.kernel.org/stable/c/4323aaedeba32076e652aad056afd7885bb96bb7>
- other: <https://git.kernel.org/stable/c/5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9>
- other: <https://git.kernel.org/stable/c/b713623bfef8cb1df9c769a3887fa10db63d1c54>
- other: <https://git.kernel.org/stable/c/eca5cd9474cd26d62f9756f536e2e656d3f62f3a>

## 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-2023-54274>

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