rbd: Reset positive result codes to zero in object map update path (Linux Linux)

CVE-2026-68131
HIGH 7.5

En bref

Source
NVD
EPSS
EPSS 0.52 % · centile 44 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: rbd: Reset positive result codes to zero in object map update path In a reply message to an RBD request, a positive result code indicates a data payload, which is not allowed for writes. While rbd_osd_req_callback() already resets a positive result code for writes to zero, rbd_object_map_callback() does not. This allows a corrupted reply to an object map update to trigger the rbd_assert(*result < 0) in __rbd_obj_handle_request(). This happens, because rbd_object_map_callback() calls rbd_obj_handle_request() -> __rbd_obj_handle_request() and passes this positive result code. From __rbd_obj_handle_request(), rbd_obj_advance_write() is called, which leaves the positive result code unchanged and returns true. Therefore, the if(done && *result) branch is executed in __rbd_obj_handle_request() and the assertion triggers. This patch fixes the issue by adjusting the logic in the rbd_object_map_callback() path. A positive result code for an object map update is now reset to zero (similar to rbd_osd_req_callback()), and the message is subsequently handled the same way as if the result code was zero from the beginning. Additionally, a WARN_ON_ONCE() is added for this case.

Faiblesses (CWE)

  • CWE-20 — Validation d'entrée incorrecte

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 22e8bd51bb0469d1a524130a057f894ff632376a < cf1167292f606deaddac35ec384eba48f08a68d2 ; affected 22e8bd51bb0469d1a524130a057f894ff632376a < da926959bf791441ba06a80571708c3d0d3cc08f ; affected 22e8bd51bb0469d1a524130a057f894ff632376a < 6f33d9d539fb94e5a17589c2dfe271ff9bb64904 ; affected 22e8bd51bb0469d1a524130a057f894ff632376a < 14995c4250f04b58bf6fc00e0e973a2e1b3cfb9b ; affected 22e8bd51bb0469d1a524130a057f894ff632376a < 2419aa74081007dc4d14ff5640659052dfdfd69a ; affected 22e8bd51bb0469d1a524130a057f894ff632376a < 34f2a2f32af570dfcc532ad70c080629ee1c32b0
Linux · Linuxaffected 5.3 ; unaffected 0 < 5.3 ; unaffected 5.10.265 ≤ 5.10.* ; unaffected 5.15.216 ≤ 5.15.* ; unaffected 6.1.183 ≤ 6.1.* ; unaffected 6.6.148 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD