CVE-2024-49900

jfs: Fix uninit-value access of new_ea in ea_buffer

State
Published
Severity
Not scored
Published
Oct 21, 2024
Updated
Oct 15, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

Description

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

jfs: Fix uninit-value access of new_ea in ea_buffer

syzbot reports that lzo1x_1_do_compress is using uninit-value:

===================================================== BUG: KMSAN: uninit-value in lzo1x_1_do_compress+0x19f9/0x2510 lib/lzo/lzo1x_compress.c:178

...

Uninit was stored to memory at: ea_put fs/jfs/xattr.c:639 [inline]

...

Local variable ea_buf created at: __jfs_setxattr+0x5d/0x1ae0 fs/jfs/xattr.c:662 __jfs_xattr_set+0xe6/0x1f0 fs/jfs/xattr.c:934

=====================================================

The reason is ea_buf->new_ea is not initialized properly.

Fix this by using memset to empty its content at the beginning in ea_get().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 7b24d41d47a6805c45378debf8bd115675d41da8Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before dac398ed272a378d2f42ac68ae408333a51baf52Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8b1dcf25c26d42e4a68c4725ce52a0543c7878ccAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before d7444f91a9f93eaa48827087ed0f3381c194181dAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6041536d18c5f51a84bc37cd568cbab61870031eAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c076b3746224982eebdba5c9e4b1467e146c0d64Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 7c244d5b48284a770d96ff703df2dfeadf804a73Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8ad8b531de79c348bcb8133e7f5e827b884226afAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2b59ffad47db1c46af25ccad157bb3b25147c35cAffected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 4.19.323 through 4.19.*Not affected
  • 5.4.285 through 5.4.*Not affected
  • 5.10.227 through 5.10.*Not affected
  • 5.15.168 through 5.15.*Not affected
  • 6.1.113 through 6.1.*Not affected
  • 6.6.55 through 6.6.*Not affected
  • 6.10.14 through 6.10.*Not affected
  • 6.11.3 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.