Skip to content
Heist/ feed
Unrated

ext4: fix string copying in parse_apply_sb_mount_options()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: ext4: fix string copying in parse_apply_sb_mount_options() strscpy_pad() can't be used to copy a non-NUL-term string into a NUL-term string of possibly bigger size. Commit 0efc5990bca5 ("string.h: Introduce memtostr() and memtostr_pad()") provides additional information in that regard. So if this happens, the following warning is observed: strnlen: detected buffer overflow: 65 byte read of buffer size 64 WARNING: CPU: 0 PID: 28655 at lib/string_helpers.c:1032 __fortify_report+0x96/0xc0 lib/string_helpers.c:1032 Modules linked in: CPU: 0 UID: 0 PID: 28655 Comm: syz-executor.3 Not tainted 6.12.54-syzkaller-00144-g5f0270f1ba00 #0 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__fortify_report+0x96/0xc0 lib/string_helpers.c:1032 Call Trace: __fortify_panic+0x1f/0x30 lib/string_helpers.c:1039 strnlen include/linux/fortify-string.h:235 [inline] sized_strscpy include/linux/fortify-string.h:309 [inline] parse_apply_sb_mount_options fs/ext4/super.c:2504 [inline] __ext4_fill_super fs/ext4/super.c:5261 [inline] ext4_fill_super+0x3c35/0xad00 fs/ext4/super.c:5706 get_tree_bdev_flags+0x387/0x620 fs/super.c:1636 vfs_get_tree+0x93/0x380 fs/super.c:1814 do_new_mount fs/namespace.c:3553 [inline] path_mount+0x6ae/0x1f70 fs/namespace.c:3880 do_mount fs/namespace.c:3893 [inline] __do_sys_mount fs/namespace.c:4103 [inline] __se_sys_mount fs/namespace.c:4080 [inline] __x64_sy

Announced Source revision 1
Original source ↗

CVE-2025-71123

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-71123

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b2bac84fde28fb6a88817b8b761abda17a1d300b",
        "lessThan": "52ac96c4a2dd7bc47666000440b0602d9742e820",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e651294218d2684302ee5ed95ccf381646f3e5b4",
        "lessThan": "6e37143560e37869d51b7d9e0ac61fc48895f8a0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "01829af7656b56d83682b3491265d583d502e502",
        "lessThan": "902ca2356f1e3ec5355c5808ad5d3f9d0095b0cc",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2a0cf438320cdb783e0378570744c0ef0d83e934",
        "lessThan": "db9ee13fab0267eccf6544ee35b16c9522db9aac",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8",
        "lessThan": "5bbacbbf1ca4419861dca3c6b82707c10e9c021c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8",
        "lessThan": "ee5a977b4e771cc181f39d504426dbd31ed701cc",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7bf46ff83a0ef11836e38ebd72cdc5107209342d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a6e94557cd05adc82fae0400f6e17745563e5412",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5.10.246",
        "lessThan": "5.10.248",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.1.158",
        "lessThan": "6.1.160",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.6.114",
        "lessThan": "6.6.120",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.12.54",
        "lessThan": "6.12.64",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "5.4.301",
        "lessThan": "5.5",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.17.4",
        "lessThan": "6.18",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "fs/ext4/super.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.18"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.18",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.248",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.120",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.64",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/ext4/super.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-71123

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#27142 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement