CVE-2022-49560

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49560
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49560.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49560
Related
Published
2025-02-26T07:01:31Z
Modified
2025-03-10T22:47:25.559388Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

exfat: check if cluster num is valid

Syzbot reported slab-out-of-bounds read in exfatclearbitmap. This was triggered by reproducer calling truncute with size 0, which causes the following trace:

BUG: KASAN: slab-out-of-bounds in exfatclearbitmap+0x147/0x490 fs/exfat/balloc.c:174 Read of size 8 at addr ffff888115aa9508 by task syz-executor251/365

Call Trace: _dumpstack lib/dumpstack.c:77 [inline] dumpstacklvl+0x1e2/0x24b lib/dumpstack.c:118 printaddressdescription+0x81/0x3c0 mm/kasan/report.c:233 _kasanreport mm/kasan/report.c:419 [inline] kasanreport+0x1a4/0x1f0 mm/kasan/report.c:436 _asanreportload8noabort+0x14/0x20 mm/kasan/reportgeneric.c:309 exfatclearbitmap+0x147/0x490 fs/exfat/balloc.c:174 exfatfreecluster+0x25a/0x4a0 fs/exfat/fatent.c:181 _exfattruncate+0x99e/0xe00 fs/exfat/file.c:217 exfattruncate+0x11b/0x4f0 fs/exfat/file.c:243 exfatsetattr+0xa03/0xd40 fs/exfat/file.c:339 notifychange+0xb76/0xe10 fs/attr.c:336 dotruncate+0x1ea/0x2d0 fs/open.c:65

Move the isvalidcluster() helper from fatent.c to a common header to make it reusable in other *.c files. And add isvalidcluster() to validate if cluster number is within valid range in exfatclearbitmap() and exfatsetbitmap().

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.120-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1
5.10.70-1
5.10.84-1
5.10.92-1~bpo10+1
5.10.92-1
5.10.92-2
5.10.103-1~bpo10+1
5.10.103-1
5.10.106-1
5.10.113-1
5.10.120-1~bpo10+1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}