{
  "threat_severity" : "Moderate",
  "public_date" : "2025-02-26T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: ext4: fix bug_on ext4_mb_use_inode_pa",
    "id" : "2347684",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2347684"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\next4: fix bug_on ext4_mb_use_inode_pa\nHulk Robot reported a BUG_ON:\n==================================================================\nkernel BUG at fs/ext4/mballoc.c:3211!\n[...]\nRIP: 0010:ext4_mb_mark_diskspace_used.cold+0x85/0x136f\n[...]\nCall Trace:\next4_mb_new_blocks+0x9df/0x5d30\next4_ext_map_blocks+0x1803/0x4d80\next4_map_blocks+0x3a4/0x1a10\next4_writepages+0x126d/0x2c30\ndo_writepages+0x7f/0x1b0\n__filemap_fdatawrite_range+0x285/0x3b0\nfile_write_and_wait_range+0xb1/0x140\next4_sync_file+0x1aa/0xca0\nvfs_fsync_range+0xfb/0x260\ndo_fsync+0x48/0xa0\n[...]\n==================================================================\nAbove issue may happen as follows:\n-------------------------------------\ndo_fsync\nvfs_fsync_range\next4_sync_file\nfile_write_and_wait_range\n__filemap_fdatawrite_range\ndo_writepages\next4_writepages\nmpage_map_and_submit_extent\nmpage_map_one_extent\next4_map_blocks\next4_mb_new_blocks\next4_mb_normalize_request\n>>> start + size <= ac->ac_o_ex.fe_logical\next4_mb_regular_allocator\next4_mb_simple_scan_group\next4_mb_use_best_found\next4_mb_new_preallocation\next4_mb_new_inode_pa\next4_mb_use_inode_pa\n>>> set ac->ac_b_ex.fe_len <= 0\next4_mb_mark_diskspace_used\n>>> BUG_ON(ac->ac_b_ex.fe_len <= 0);\nwe can easily reproduce this problem with the following commands:\n`fallocate -l100M disk`\n`mkfs.ext4 -b 1024 -g 256 disk`\n`mount disk /mnt`\n`fsstress -d /mnt -l 0 -n 1000 -p 1`\nThe size must be smaller than or equal to EXT4_BLOCKS_PER_GROUP.\nTherefore, \"start + size <= ac->ac_o_ex.fe_logical\" may occur\nwhen the size is truncated. So start should be the start position of\nthe group where ac_o_ex.fe_logical is located after alignment.\nIn addition, when the value of fe_logical or EXT4_BLOCKS_PER_GROUP\nis very large, the value calculated by start_off is more accurate." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2022-11-08T00:00:00Z",
    "advisory" : "RHSA-2022:7683",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-425.3.1.el8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-11-15T00:00:00Z",
    "advisory" : "RHSA-2022:8267",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-162.6.1.el9_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-11-15T00:00:00Z",
    "advisory" : "RHSA-2022:8267",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-162.6.1.el9_1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-49708\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-49708\nhttps://lore.kernel.org/linux-cve-announce/2025022630-CVE-2022-49708-f056@gregkh/T" ],
  "name" : "CVE-2022-49708",
  "csaw" : false
}