Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38604
HistoryJun 19, 2024 - 1:48 p.m.

CVE-2024-38604 block: refine the EOF check in blkdev_iomap_begin

2024-06-1913:48:15
Linux
www.cve.org
4
linux kernel
vulnerability
blkdev_iomap_begin
eof check
i_size
inode size
raw pos value
zero size write
unaligned.

0.0004 Low

EPSS

Percentile

15.7%

In the Linux kernel, the following vulnerability has been resolved:

block: refine the EOF check in blkdev_iomap_begin

blkdev_iomap_begin rounds down the offset to the logical block size
before stashing it in iomap->offset and checking that it still is
inside the inode size.

Check the i_size check to the raw pos value so that we don’t try a
zero size write if iter->pos is unaligned.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "block/fops.c"
    ],
    "versions": [
      {
        "version": "487c607df790",
        "lessThan": "910717920c8c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "487c607df790",
        "lessThan": "72c54e063c32",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "487c607df790",
        "lessThan": "10b723bcba89",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "487c607df790",
        "lessThan": "0c12028aec83",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "block/fops.c"
    ],
    "versions": [
      {
        "version": "6.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.33",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.12",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.3",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2024-38604