DEBIAN-CVE-2022-50581

Source
https://security-tracker.debian.org/tracker/CVE-2022-50581
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50581.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2022-50581
Upstream
Published
2025-10-22T14:15:43.147Z
Modified
2025-11-20T10:16:33.771017Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved: hfs: fix OOB Read in _hfsbrecfind Syzbot reported a OOB read bug: ================================================================== BUG: KASAN: slab-out-of-bounds in hfsstrcmp+0x117/0x190 fs/hfs/string.c:84 Read of size 1 at addr ffff88807eb62c4e by task kworker/u4:1/11 CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.0-rc6-syzkaller-00308-g644e9524388a #0 Workqueue: writeback wbworkfn (flush-7:0) Call Trace: <TASK> _dumpstack lib/dumpstack.c:88 [inline] dumpstacklvl+0x1b1/0x28e lib/dumpstack.c:106 printaddressdescription+0x74/0x340 mm/kasan/report.c:284 printreport+0x107/0x1f0 mm/kasan/report.c:395 kasanreport+0xcd/0x100 mm/kasan/report.c:495 hfsstrcmp+0x117/0x190 fs/hfs/string.c:84 _hfsbrecfind+0x213/0x5c0 fs/hfs/bfind.c:75 hfsbrecfind+0x276/0x520 fs/hfs/bfind.c:138 hfswriteinode+0x34c/0xb40 fs/hfs/inode.c:462 writeinode fs/fs-writeback.c:1440 [inline] If the input inode of hfswriteinode() is incorrect: struct inode struct hfsinodeinfo struct hfscatkey struct hfsname u8 len # len is greater than HFSNAMELEN(31) which is the maximum length of an HFS filename OOB read occurred: hfswriteinode() hfsbrecfind() _hfsbrecfind() hfscatkeycmp() hfsstrcmp() # OOB read occurred due to len is too large Fix this by adding a Check on len in hfswriteinode() before calling hfsbrecfind().

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.178-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
5.10.120-1
5.10.127-1
5.10.127-2~bpo10+1
5.10.127-2
5.10.136-1
5.10.140-1
5.10.148-1
5.10.149-1
5.10.149-2
5.10.158-1
5.10.158-2
5.10.162-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
6.1.4-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
6.1.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:14 / 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
6.1.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}