CVE-2023-54274
RDMA/srpt: Add a check for valid 'mad_agent' pointer
Reported by linux · Published December 30, 2025
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]
EPSS 0.21% · 11.1th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debug-modules-extra | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-core | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-modules | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-debug-modules | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-doc | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-modules-extra | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-debug-core | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| perf-debuginfo | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-tools-libs-devel | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-abi-stablelists | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a42d985bd5b234da8b61347a78dc3057bf7bb94d, a42d985bd5b234da8b61347a78dc3057bf7bb94d, a42d985bd5b234da8b61347a78dc3057bf7bb94d |
| Linux | Linux | 3.3, 0, 5.10.180 |
| linux | linux_kernel | 3.3, 3.3, 3.3 |
| Linux | Linux | *, *, * |
Timeline
- Dec 30, 2025 CVE Published
- Dec 31, 2025 EPSS Score (30 in total, the first dated here)
- May 30, 2026 Security Advisory (25 in total, the first dated here)
- Jul 27, 2026 Coalition ESS Score
- Oct 4, 2026 Distribution Patch (24 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-54274
vulnetix vdb fixes CVE-2023-54274
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-54274/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart