CVE-2022-49318

Source
https://cve.org/CVERecord?id=CVE-2022-49318
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49318.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49318
Downstream
Published
2025-02-26T02:10:44.557Z
Modified
2026-07-08T06:43:38.879509010Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
f2fs: remove WARN_ON in f2fs_is_valid_blkaddr
Details

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

f2fs: remove WARNON in f2fsisvalidblkaddr

Syzbot triggers two WARNs in f2fsisvalid_blkaddr and _isbitmapvalid. For example, in f2fsisvalidblkaddr, if type is DATAGENERICENHANCE or DATAGENERICENHANCEREAD, it invokes WARNON if blkaddr is not in the right range. The call trace is as follows:

f2fsgetnodeinfo+0x45f/0x1070 readnode_page+0x577/0x1190 __getnodepage.part.0+0x9e/0x10e0 __getnodepage f2fsgetnodepage+0x109/0x180 doreadinode f2fsiget+0x2a5/0x58b0 f2fsfillsuper+0x3b39/0x7ca0

Fix these two WARNs by replacing WARNON with dumpstack.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49318.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
98e4da8ca301e062d79ae168c67e56f3c3de3ce4
Fixed
0a7a1fc7e71eecf2e5053a6c312c9f0dcbb9b8fd
Fixed
32bea51fe4c6e92c00403739f7547c89219bea88
Fixed
99c09b298e47ebbe345a6da9f268b32a6b0f4582
Fixed
cd6374af36cc548464d8c47a93fdba7303bb82a4
Fixed
8c62c5e26345c34d199b4b8c8e69255ba3d0e751
Fixed
dc2f78e2d4cc844a1458653d57ce1b54d4a29f21

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49318.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.8.0
Fixed
5.4.198
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.122
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.47
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.17.15
Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
5.18.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49318.json"