- Description
- In the Linux kernel, the following vulnerability has been resolved: smb/client: invalidate fscache for fallocate range operations smb3_zero_range(), smb3_punch_hole(), smb3_insert_range(), and smb3_collapse_range() modify file contents through server-side range operations. These operations discard the affected page cache, but leave the FS-Cache cookie valid, so a later read may return data cached before the range operation. Fix this by invalidating FS-Cache after outstanding I/O has completed and before modifying the file on the server. Run the following as root on a CIFS mount with fsc enabled and an active CacheFiles backend: bash -c ' MNT=/mnt/cifs FILE="$MNT/repro" # Generate four 1 MiB random blocks: [A][B][C][D]. dd if=/dev/urandom of=/tmp/src bs=1M count=4 status=none # Expected contents after zeroing B: [A][zero][C][D]. cp /tmp/src /tmp/expected dd if=/dev/zero of=/tmp/expected bs=1M seek=1 count=1 \ conv=notrunc status=none cp /tmp/src "$FILE" # Populate FS-Cache, then discard the page cache. sync echo 1 > /proc/sys/vm/drop_caches cat "$FILE" > /dev/null sync echo 1 > /proc/sys/vm/drop_caches fallocate --zero-range -o 1M -l 1M "$FILE" if cmp -s /tmp/expected "$FILE"; then echo "readback: OK" else echo "readback: STALE DATA" fi ' Before this change, the readback differs from /tmp/expected: readback: STALE DATA After this change, it matches: readback: OK
- Source
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Analyzed
- Products
- linux_kernel
CVSS 3.1
- Type
- Primary
- Base score
- 5.5
- Impact score
- 3.6
- Exploitability score
- 1.8
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Severity
- MEDIUM
- nvd@nist.gov
- CWE-672
- Hype score
- Not currently trending
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "438C480C-978E-4F8C-A37D-7CB29AE32E61",
"versionEndExcluding": "6.6.160",
"versionStartIncluding": "3.17.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:-:*:*:*:*:*:*",
"matchCriteriaId": "7DD957C0-0777-4304-9BCA-7E8429CBE3D3",
"versionEndExcluding": "6.12.114",
"versionStartIncluding": "6.7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "BACEDE75-270F-419E-A22D-025914C6BA15",
"versionEndExcluding": "7.2.7",
"versionStartIncluding": "6.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:-:*:*:*:*:*:*",
"matchCriteriaId": "3A351B03-87A0-405B-8A9B-488E173E1E3B",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:rc2:*:*:*:*:*:*",
"matchCriteriaId": "434E8752-0D8B-42E1-8B8F-23C409AB442C",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:rc3:*:*:*:*:*:*",
"matchCriteriaId": "D64AD3CD-8D3C-4749-9042-969F524DCB68",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:rc4:*:*:*:*:*:*",
"matchCriteriaId": "4B4E29E3-9F10-43B1-A349-1F7484F6015A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:rc5:*:*:*:*:*:*",
"matchCriteriaId": "4223286C-F679-4FEC-B144-1C3B942BD506",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:rc6:*:*:*:*:*:*",
"matchCriteriaId": "C889AAA8-186E-433F-A31D-FF09221E1EBC",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:3.17:rc7:*:*:*:*:*:*",
"matchCriteriaId": "80BC78EE-50D8-4561-A6A6-A370E72F215B",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:6.13:-:*:*:*:*:*:*",
"matchCriteriaId": "5A3F9505-6B98-4269-8B81-127E55A1BF00",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*",
"matchCriteriaId": "11E35E1B-5DB4-4AB9-9706-CD73B799EADF",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
]