CVE-2024-57857 (GCVE-0-2024-57857)

Vulnerability from cvelistv5 – Published: 2025-01-15 13:10 – Updated: 2026-10-21 12:35
VLAI
Title
RDMA/siw: Remove direct link to net_device
Summary
In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Remove direct link to net_device Do not manage a per device direct link to net_device. Rely on associated ib_devices net_device management, not doubling the effort locally. A badly managed local link to net_device was causing a 'KASAN: slab-use-after-free' exception during siw_query_port() call.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-02-13 13:56 UTC
CWE
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521 , < 6a97bfc0293db234ac6ec32f6a32bd6702191a95 (git)
Affected: bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521 , < 4eafeb4f021c50d13f199239d913b37de3c83135 (git)
Affected: bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521 , < 16b87037b48889d21854c8e97aec8a1baf2642b3 (git)
Create a notification for this product.
Linux Linux Affected: 5.3
Unaffected: 0 , < 5.3 (semver)
Unaffected: 6.6.160 , ≤ 6.6.* (semver)
Unaffected: 6.12.9 , ≤ 6.12.* (semver)
Unaffected: 6.13 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-57857",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-13T13:56:36.478008Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-02-13T14:04:27.319Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/sw/siw/siw.h",
            "drivers/infiniband/sw/siw/siw_cm.c",
            "drivers/infiniband/sw/siw/siw_main.c",
            "drivers/infiniband/sw/siw/siw_verbs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6a97bfc0293db234ac6ec32f6a32bd6702191a95",
              "status": "affected",
              "version": "bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521",
              "versionType": "git"
            },
            {
              "lessThan": "4eafeb4f021c50d13f199239d913b37de3c83135",
              "status": "affected",
              "version": "bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521",
              "versionType": "git"
            },
            {
              "lessThan": "16b87037b48889d21854c8e97aec8a1baf2642b3",
              "status": "affected",
              "version": "bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/sw/siw/siw.h",
            "drivers/infiniband/sw/siw/siw_cm.c",
            "drivers/infiniband/sw/siw/siw_main.c",
            "drivers/infiniband/sw/siw/siw_verbs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.3"
            },
            {
              "lessThan": "5.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.160",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.9",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/siw: Remove direct link to net_device\n\nDo not manage a per device direct link to net_device. Rely\non associated ib_devices net_device management, not doubling\nthe effort locally. A badly managed local link to net_device\nwas causing a \u0027KASAN: slab-use-after-free\u0027 exception during\nsiw_query_port() call."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The dangling `sdev-\u003enetdev` is only dereferenced from local paths \u2014 sysfs port attribute reads, NETLINK_RDMA `PORT_GET`, uverbs `query_port`/`query_qp`, `rdma_listen()`, and the in-kernel ib_cache work triggered by local netdev teardown. No remote peer data or received packet reaches these sites.\nAC:L - The attacker drives both sides of the race \u2014 generating port events (netdev up/down/changeaddr) that queue the `ib_cache_event_task`, and tearing down the netdev/netns that frees the `net_device` \u2014 and can repeat the sequence indefinitely while spamming `query_port` via sysfs/netlink, so the window is reachable on demand (syzbot reproduced it).\nPR:L - The code that dereferences the freed pointer is reachable with zero privileges (world-readable `/sys/class/infiniband/*/ports/1/state`, unprivileged `RDMA_NLDEV_CMD_PORT_GET`, `ibv_query_port`), and the netdev-teardown side needs only `CAP_NET_ADMIN` within a network namespace, which an unprivileged user obtains via `unshare -Urn`; no real root in the initial namespace is required to reach the vulnerable dereference.\nUI:N - No victim action is needed \u2014 the attacker performs the device/netdev teardown and the query itself, or simply races the kernel\u0027s own asynchronous cache-update work.\nS:U - The use-after-free is confined to kernel memory within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - This is a use-after-free read of a freed `struct net_device` slab object whose contents can be groomed by the attacker, and the read values are returned to userspace through `attr-\u003emax_mtu`/`active_mtu` and `qp_attr-\u003epath_mtu`, giving a controllable read of reclaimed kernel memory.\nI:H - Per use-after-free handling, the dangling pointer is not merely read but its contents feed kernel state \u2014 `siw_create_listen()` writes freed memory into `sk-\u003esk_bound_dev_if` \u2014 and a UAF on a sprayable slab object is the standard primitive for heap grooming and control-flow corruption.\nA:H - The confirmed outcome is a KASAN slab-use-after-free during `siw_query_port()`; dereferencing a stale `net_device` pointer into reclaimed or unmapped memory oopses/panics the kernel, and the trigger can be repeated at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-21T12:35:43.075Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/6a97bfc0293db234ac6ec32f6a32bd6702191a95"
        },
        {
          "url": "https://git.kernel.org/stable/c/4eafeb4f021c50d13f199239d913b37de3c83135"
        },
        {
          "url": "https://git.kernel.org/stable/c/16b87037b48889d21854c8e97aec8a1baf2642b3"
        }
      ],
      "title": "RDMA/siw: Remove direct link to net_device",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-57857",
    "datePublished": "2025-01-15T13:10:28.613Z",
    "dateReserved": "2025-01-15T13:08:59.681Z",
    "dateUpdated": "2026-10-21T12:35:43.075Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-57857",
      "date": "2026-11-19",
      "epss": "0.00265",
      "percentile": "0.18635"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-05T15:05:26.000Z",
      "cve": "CVE-2024-57857",
      "id": "msrc_CVE-2024-57857",
      "initial_release_date": "2025-09-04T03:42:28.000Z",
      "product_status:known_affected": "27",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "RDMA/siw: Remove direct link to net_device",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2024-57857.json",
      "version": "25"
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-09T17:33:04+00:00",
      "cve": "CVE-2024-57857",
      "id": "CVE-2024-57857",
      "initial_release_date": "2024-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: RDMA/siw: Remove direct link to net_device",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-57857.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "LOW",
                  "attackVector": "LOCAL",
                  "availabilityImpact": "HIGH",
                  "baseScore": 7.8,
                  "baseSeverity": "HIGH",
                  "confidentialityImpact": "HIGH",
                  "integrityImpact": "HIGH",
                  "privilegesRequired": "LOW",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-57857",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-02-13T13:56:36.478008Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "problemTypes": [
              {
                "descriptions": [
                  {
                    "cweId": "CWE-416",
                    "description": "CWE-416 Use After Free",
                    "lang": "en",
                    "type": "CWE"
                  }
                ]
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-02-13T13:56:37.779Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Linux",
              "programFiles": [
                "drivers/infiniband/sw/siw/siw.h",
                "drivers/infiniband/sw/siw/siw_cm.c",
                "drivers/infiniband/sw/siw/siw_main.c",
                "drivers/infiniband/sw/siw/siw_verbs.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "lessThan": "6a97bfc0293db234ac6ec32f6a32bd6702191a95",
                  "status": "affected",
                  "version": "bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521",
                  "versionType": "git"
                },
                {
                  "lessThan": "4eafeb4f021c50d13f199239d913b37de3c83135",
                  "status": "affected",
                  "version": "bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521",
                  "versionType": "git"
                },
                {
                  "lessThan": "16b87037b48889d21854c8e97aec8a1baf2642b3",
                  "status": "affected",
                  "version": "bdcf26bf9b3acb03c8f90387cfc6474fc8ac5521",
                  "versionType": "git"
                }
              ]
            },
            {
              "defaultStatus": "affected",
              "product": "Linux",
              "programFiles": [
                "drivers/infiniband/sw/siw/siw.h",
                "drivers/infiniband/sw/siw/siw_cm.c",
                "drivers/infiniband/sw/siw/siw_main.c",
                "drivers/infiniband/sw/siw/siw_verbs.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "status": "affected",
                  "version": "5.3"
                },
                {
                  "lessThan": "5.3",
                  "status": "unaffected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.6.*",
                  "status": "unaffected",
                  "version": "6.6.160",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.12.*",
                  "status": "unaffected",
                  "version": "6.12.9",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "*",
                  "status": "unaffected",
                  "version": "6.13",
                  "versionType": "original_commit_for_fix"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.6.160",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.12.9",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.13",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/siw: Remove direct link to net_device\n\nDo not manage a per device direct link to net_device. Rely\non associated ib_devices net_device management, not doubling\nthe effort locally. A badly managed local link to net_device\nwas causing a \u0027KASAN: slab-use-after-free\u0027 exception during\nsiw_query_port() call."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "scenarios": [
                {
                  "lang": "en",
                  "value": "AV:L - The dangling `sdev-\u003enetdev` is only dereferenced from local paths \u2014 sysfs port attribute reads, NETLINK_RDMA `PORT_GET`, uverbs `query_port`/`query_qp`, `rdma_listen()`, and the in-kernel ib_cache work triggered by local netdev teardown. No remote peer data or received packet reaches these sites.\nAC:L - The attacker drives both sides of the race \u2014 generating port events (netdev up/down/changeaddr) that queue the `ib_cache_event_task`, and tearing down the netdev/netns that frees the `net_device` \u2014 and can repeat the sequence indefinitely while spamming `query_port` via sysfs/netlink, so the window is reachable on demand (syzbot reproduced it).\nPR:L - The code that dereferences the freed pointer is reachable with zero privileges (world-readable `/sys/class/infiniband/*/ports/1/state`, unprivileged `RDMA_NLDEV_CMD_PORT_GET`, `ibv_query_port`), and the netdev-teardown side needs only `CAP_NET_ADMIN` within a network namespace, which an unprivileged user obtains via `unshare -Urn`; no real root in the initial namespace is required to reach the vulnerable dereference.\nUI:N - No victim action is needed \u2014 the attacker performs the device/netdev teardown and the query itself, or simply races the kernel\u0027s own asynchronous cache-update work.\nS:U - The use-after-free is confined to kernel memory within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - This is a use-after-free read of a freed `struct net_device` slab object whose contents can be groomed by the attacker, and the read values are returned to userspace through `attr-\u003emax_mtu`/`active_mtu` and `qp_attr-\u003epath_mtu`, giving a controllable read of reclaimed kernel memory.\nI:H - Per use-after-free handling, the dangling pointer is not merely read but its contents feed kernel state \u2014 `siw_create_listen()` writes freed memory into `sk-\u003esk_bound_dev_if` \u2014 and a UAF on a sprayable slab object is the standard primitive for heap grooming and control-flow corruption.\nA:H - The confirmed outcome is a KASAN slab-use-after-free during `siw_query_port()`; dereferencing a stale `net_device` pointer into reclaimed or unmapped memory oopses/panics the kernel, and the trigger can be repeated at will."
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-10-21T12:35:43.075Z",
            "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "shortName": "Linux"
          },
          "references": [
            {
              "url": "https://git.kernel.org/stable/c/6a97bfc0293db234ac6ec32f6a32bd6702191a95"
            },
            {
              "url": "https://git.kernel.org/stable/c/4eafeb4f021c50d13f199239d913b37de3c83135"
            },
            {
              "url": "https://git.kernel.org/stable/c/16b87037b48889d21854c8e97aec8a1baf2642b3"
            }
          ],
          "title": "RDMA/siw: Remove direct link to net_device",
          "x_generator": {
            "engine": "bippy-1.2.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "assignerShortName": "Linux",
        "cveId": "CVE-2024-57857",
        "datePublished": "2025-01-15T13:10:28.613Z",
        "dateReserved": "2025-01-15T13:08:59.681Z",
        "dateUpdated": "2026-10-21T12:35:43.075Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.