Incorrect Calculation of Buffer Size Affecting torvalds/linux package, versions [,5.16)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-2992875
  • published25 Aug 2022
  • disclosed25 Aug 2022
  • creditKirill Tkhai (Virtuozzo Kernel team)

Introduced: 25 Aug 2022

CVE-2021-4155  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 5.16 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation of Buffer Size due to XFS_IOC_ALLOCSP IOCTL in the XFS filesystem being allowed for size increase of files with unaligned size, allowing a local attacker to leak data on the XFS filesystem otherwise not accessible to them.

CVSS Base Scores

version 3.1