CVE-2023-54274
JSON

Not scored

RDMA/srpt: Add a check for valid 'mad_agent' pointer

Severity
Not scored
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom a42d985bd5b234da8b61347a78dc3057bf7bb94d before 8ec6acdb9b6a80eeb13e778dfedb5d72a88f14fe, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before 00cc21e32ea1b8ebbabf5d645da9378d986bf8ba, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before 4323aaedeba32076e652aad056afd7885bb96bb7, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before 5f6ef2a574b0e0e0ea46ed0022575442df9d0bf9, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before b713623bfef8cb1df9c769a3887fa10db63d1c54, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before eca5cd9474cd26d62f9756f536e2e656d3f62f3a, 3.3
Not affected: before 3.3, from 5.10.180 up to 5.10.*, from 5.15.111 up to 5.15.*, from 6.1.28 up to 6.1.*, from 6.2.15 up to 6.2.*, from 6.3.2 up to 6.3.*
CVE List

What each source says

CVE List

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]

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: RDMA/srpt: Añadir una comprobación para un puntero 'mad_agent' válido Al anular el registro del agente MAD, el módulo srpt tiene una comprobación de no nulidad para el puntero 'mad_agent' antes de invocar ib_unregister_mad_agent(). Esta comprobación puede pasar si la variable 'mad_agent' contiene un valor de error. El 'mad_agent' puede tener un valor de error durante una ventana corta cuando srpt_add_one() y srpt_remove_one() se ejecutan simultáneamente. En el módulo srpt, se añadió una comprobación de puntero válido para 'sport->mad_agent' antes de anular el registro del agente MAD. Este problema puede ocurrir cuando el controlador RoCE anula el registro de ib_device Traza de la pila: ------------ BUG: desreferencia de puntero NULL del kernel, dirección: 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 Nombre del hardware: Dell Inc. PowerEdge R640/06NR82, BIOS 2.5.4 01/13/2020 Cola de trabajo: bnxt_re bnxt_re_task [bnxt_re] RIP: 0010:_raw_spin_lock_irqsave+0x19/0x40 Traza de llamada: ib_unregister_mad_agent+0x46/0x2f0 [ib_core] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: el enlace está listo ? __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: (esclavo p2p1): estado del enlace definitivamente activo, 100000 Mbps full duplex disable_device+0x8a/0x160 [ib_core] bond0: ¡interfaz activa levantada! ? kernfs_name_hash+0x12/0x80 (dispositivo NULL *): Información de Bonding Recibida: rdev: 000000006c0b8247 __ib_unregister_device+0x42/0xb0 [ib_core] (dispositivo NULL *): Maestro: modo: 4 num_slaves:2 ib_unregister_device+0x22/0x30 [ib_core] (dispositivo NULL *): Esclavo: id: 105069936 nombre:p2p1 enlace:0 estado:0 bnxt_re_stopqps_and_ib_uninit+0x83/0x90 [bnxt_re] bnxt_re_alloc_lag+0x12e/0x4e0 [bnxt_re]

References

Sources

SourceRecordLicence
CVE ListCVE-2023-54274 changed 2026-05-11CVE Terms of Use
NVDCVE-2023-54274 changed 2026-06-17Public domain