CVE-2026-138926 (GCVE-0-2026-138926)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:26 – Updated: 2026-12-01 05:40
VLAI
Title
dm: fix a bug in dm_accept_partial_bio
Summary
In the Linux kernel, the following vulnerability has been resolved: dm: fix a bug in dm_accept_partial_bio dm-writecache doesn't work in pmem mode - mkfs.ext4 and the following fsck.ext4 fail with data corruption reported. The commit 7dd76d1feec7 ("dm: improve bio splitting and associated IO accounting") introduced a latent bug in dm_accept_partial_bio - it set tio->io->sectors = n_sectors;. This is incorrect, according to the diagram in the source code at dm_accept_partial_bio, it should be the size of regions 1+2, not the region 2 alone. The latent bug become real bug with the commit 8b211aaccb91 ("dm: add two stage requeue mechanism"). dm-writecache in pmem mode is the only target that actually advances bio with bio_advance and then calls dm_accept_partial_bio (so, the region 1 is non-empty). All the other targets call dm_accept_partial_bio with region 1 empty, so bug went unnoticed for so long.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 8b211aaccb915bbf4f4a68f1910c4de701df393b , < 423436c324664aa98dcfca2042832eba3a9c746d (git)
Affected: 8b211aaccb915bbf4f4a68f1910c4de701df393b , < 182b0763365ddf3a7254a6df7a125ebb361499a2 (git)
Affected: 8b211aaccb915bbf4f4a68f1910c4de701df393b , < ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51 (git)
Affected: 8b211aaccb915bbf4f4a68f1910c4de701df393b , < affc1ebd65f517897f1c092fb87f2c42f0fc41f5 (git)
Affected: 8b211aaccb915bbf4f4a68f1910c4de701df393b , < 16802c8e3d7f63833f8bb96d159450544c529e50 (git)
Affected: 8b211aaccb915bbf4f4a68f1910c4de701df393b , < a279804752e6c767b7f9ecbb32a15bdfd2b80aea (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.0
Unaffected: 0 , < 6.0 (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/md/dm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "423436c324664aa98dcfca2042832eba3a9c746d",
              "status": "affected",
              "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
              "versionType": "git"
            },
            {
              "lessThan": "182b0763365ddf3a7254a6df7a125ebb361499a2",
              "status": "affected",
              "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
              "versionType": "git"
            },
            {
              "lessThan": "ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51",
              "status": "affected",
              "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
              "versionType": "git"
            },
            {
              "lessThan": "affc1ebd65f517897f1c092fb87f2c42f0fc41f5",
              "status": "affected",
              "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
              "versionType": "git"
            },
            {
              "lessThan": "16802c8e3d7f63833f8bb96d159450544c529e50",
              "status": "affected",
              "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
              "versionType": "git"
            },
            {
              "lessThan": "a279804752e6c767b7f9ecbb32a15bdfd2b80aea",
              "status": "affected",
              "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/md/dm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.0"
            },
            {
              "lessThan": "6.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix a bug in dm_accept_partial_bio\n\ndm-writecache doesn\u0027t work in pmem mode - mkfs.ext4 and the following\nfsck.ext4 fail with data corruption reported.\n\nThe commit 7dd76d1feec7 (\"dm: improve bio splitting and associated IO\naccounting\") introduced a latent bug in dm_accept_partial_bio - it set\ntio-\u003eio-\u003esectors = n_sectors;. This is incorrect, according to the\ndiagram in the source code at dm_accept_partial_bio, it should be the\nsize of regions 1+2, not the region 2 alone.\n\nThe latent bug become real bug with the commit 8b211aaccb91 (\"dm: add two\nstage requeue mechanism\").\n\ndm-writecache in pmem mode is the only target that actually advances bio\nwith bio_advance and then calls dm_accept_partial_bio (so, the region 1\nis non-empty). All the other targets call dm_accept_partial_bio with\nregion 1 empty, so bug went unnoticed for so long."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - dm_accept_partial_bio() sets io-\u003esectors to region 2 only, so dm_split_and_process_bio()\u0027s bio_trim(bio, io-\u003esectors, ci.sector_count) skips the bio\u0027s region-1-sized tail. With a pmem dm-writecache LV behind nvmet-tcp, an initiator\u0027s NVMe Read lands in nvmet_tcp_map_data()\u0027s sgl_alloc() pages via nvmet_bdev_execute_rw(), and the never-filled tail is returned to it in C2HData PDUs.\nAC:H - Only dm-writecache in pmem (\u0027p\u0027) mode advances the clone (bio_copy_block on read hits) before calling dm_accept_partial_bio() (writecache_map_remap_origin on the following miss). This needs an admin-built table on a DAX-synchronous pmem cache device, a rare deployment the attacker cannot create, though it can then lay out hit/miss/hit blocks with its own Writes.\nPR:L - Loading the writecache table needs CAP_SYS_ADMIN in the init namespace (capable() in dm-ioctl ctl_ioctl), which is admin setup. Triggering needs only read/write access to the volume: an NVMe-oF host allowed on the namespace, or a local user with file access on a filesystem on it.\nUI:N - The attacker writes blocks A and C (pmem-mode writecache_map_write() caches them), leaves B uncached, then issues one read spanning A..C. No victim action is involved.\nS:U - The stale-data disclosure and the lost or garbage I/O happen inside the host kernel\u0027s dm/block layer serving that volume. No VM, container or IOMMU boundary is crossed.\nC:H - The skipped tail\u0027s pages (nvmet sgl_alloc() buffers or readahead folios, neither zeroed without init_on_alloc) complete as a successful read, returning stale contents of previously freed pages. The leak size equals the attacker-chosen run of leading cache hits and repeats on every such read.\nI:H - The same trim mismatch makes WRITEs in cleaner or metadata_only mode (direct_write -\u003e writecache_map_remap_origin) drop their tail while reporting success, and reads mark unfilled pages uptodate as valid data. The fix commit reports mkfs.ext4/fsck.ext4 corruption on a pmem writecache.\nA:L - No crash or hang: bio_trim()\u0027s bounds still hold and no BUG_ON in dm_accept_partial_bio() fires. Availability is degraded through wrong data and lost writes that need fsck or repair, not through a kernel fault."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:40:44.878Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/423436c324664aa98dcfca2042832eba3a9c746d"
        },
        {
          "url": "https://git.kernel.org/stable/c/182b0763365ddf3a7254a6df7a125ebb361499a2"
        },
        {
          "url": "https://git.kernel.org/stable/c/ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51"
        },
        {
          "url": "https://git.kernel.org/stable/c/affc1ebd65f517897f1c092fb87f2c42f0fc41f5"
        },
        {
          "url": "https://git.kernel.org/stable/c/16802c8e3d7f63833f8bb96d159450544c529e50"
        },
        {
          "url": "https://git.kernel.org/stable/c/a279804752e6c767b7f9ecbb32a15bdfd2b80aea"
        }
      ],
      "title": "dm: fix a bug in dm_accept_partial_bio",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-138926",
    "datePublished": "2026-11-30T13:26:16.203Z",
    "dateReserved": "2026-11-30T13:22:15.904Z",
    "dateUpdated": "2026-12-01T05:40:44.878Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-138926",
      "date": "2026-12-04",
      "epss": "0.00411",
      "percentile": "0.37401"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/md/dm.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "423436c324664aa98dcfca2042832eba3a9c746d",
                    "status": "affected",
                    "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "182b0763365ddf3a7254a6df7a125ebb361499a2",
                    "status": "affected",
                    "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51",
                    "status": "affected",
                    "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "affc1ebd65f517897f1c092fb87f2c42f0fc41f5",
                    "status": "affected",
                    "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "16802c8e3d7f63833f8bb96d159450544c529e50",
                    "status": "affected",
                    "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a279804752e6c767b7f9ecbb32a15bdfd2b80aea",
                    "status": "affected",
                    "version": "8b211aaccb915bbf4f4a68f1910c4de701df393b",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/md/dm.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.0"
                  },
                  {
                    "lessThan": "6.0",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix a bug in dm_accept_partial_bio\n\ndm-writecache doesn\u0027t work in pmem mode - mkfs.ext4 and the following\nfsck.ext4 fail with data corruption reported.\n\nThe commit 7dd76d1feec7 (\"dm: improve bio splitting and associated IO\naccounting\") introduced a latent bug in dm_accept_partial_bio - it set\ntio-\u003eio-\u003esectors = n_sectors;. This is incorrect, according to the\ndiagram in the source code at dm_accept_partial_bio, it should be the\nsize of regions 1+2, not the region 2 alone.\n\nThe latent bug become real bug with the commit 8b211aaccb91 (\"dm: add two\nstage requeue mechanism\").\n\ndm-writecache in pmem mode is the only target that actually advances bio\nwith bio_advance and then calls dm_accept_partial_bio (so, the region 1\nis non-empty). All the other targets call dm_accept_partial_bio with\nregion 1 empty, so bug went unnoticed for so long."
          }
        ],
        "id": "CVE-2026-138926",
        "lastModified": "2026-12-01T06:17:31.450",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 7.1,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L",
                "version": "3.1"
              },
              "exploitabilityScore": 1.6,
              "impactScore": 5.5,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:51.670",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/16802c8e3d7f63833f8bb96d159450544c529e50"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/182b0763365ddf3a7254a6df7a125ebb361499a2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/423436c324664aa98dcfca2042832eba3a9c746d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a279804752e6c767b7f9ecbb32a15bdfd2b80aea"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/affc1ebd65f517897f1c092fb87f2c42f0fc41f5"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:09:15+00:00",
      "cve": "CVE-2026-138926",
      "id": "CVE-2026-138926",
      "initial_release_date": "2026-11-30T13:26:16.203000+00:00",
      "product_status:known_affected": "189",
      "product_status:known_not_affected": "91",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: Kernel: Data corruption via incorrect partial I/O handling in Device Mapper",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-138926.json",
      "version": "3"
    }
  }
}



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. The method is described in a publication.

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.