Към съдържанието

CVE-2026-98959: Linux

9.8

CVSS 3.1

Няма данни

Вероятност да бъде експлоатирана в следващите 30 дни (EPSS)

Няма потвърждение

Атакува се

Няма данни

Време до експлоатация

Атакува се по мрежата, без особени условия, без вход и без действие от потребителя.

    Описание

    Оригинално описание

    In the Linux kernel, the following vulnerability has been resolved: btrfs: fix xattr replace when multiple xattrs are packed in the same item If we have a btrfs_dir_item item that packs multiple xattrs and then we replace the value of one of them (with the setxattr(2) family of syscalls) with another value of a different size, we end up not having a fully initialized btrfs_dir_item, resulting in a corruption that the tree checker will detect at extent buffer writeback time. This is because in btrfs_setxattr() when we find a btrfs_dir_item with multiple xattrs (due to the crc32c hash of their name being the same) we delete one of the xattr items (btrfs_dir_item) and then insert a new one, but the deletion and insertion results in shifting existing data in the leaf and therefore when the new value of a xattr has a different size, the new btrfs_dir_item is placed in a leaf section that was not initialized and we only copy the value's data and set the value's length in the new btrfs_dir_item, without setting the name, the name's length, the key (which must be all zeroes for xattrs), flags (BTRFS_FT_XATTR) and transaction ID. The following script reproduces the issue: $ cat test.sh #!/bin/bash DEV=/dev/sdi MNT=/mnt/sdi mkfs.btrfs -f $DEV mount $DEV $MNT touch $MNT/testfile # Add two xattrs that, on btrfs, have the same hash (crc32c) for their # name and therefore are packed into the same btrfs_dir_item. setfattr -n user.foobar -v 123 $MNT/testfile setfattr -n user.WvG1c1Td -v qwerty $MNT/testfile # Verify the xattrs are present. echo "xattrs before:" getfattr --absolute-names --dump $MNT/testfile # Now replace the value of the foobar xattr with a significantly larger # value. setfattr -n user.foobar -v abcdefghijklmnopqrstuvwxyz $MNT/testfile # Check the xattrs have the expected values. echo "xattrs after:" getfattr --absolute-names --dump $MNT/testfile umount $MNT Running it: $ ./test.sh (...) xattrs before:

    Засегнати продукти

    • Linux Linux: 5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339 преди 7a53bb4668b319fc6c8a3ce2c21635125c7d2712; 5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339 преди 5877d7138cc4359d26fd7b010eedfd1b3162348f; 5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339 преди a97114b9b00ed3d05156f3b2ddbf797296260389; 5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339 преди c1803697a60f22743aa28ad522f805e92d45e3f0; 5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339 преди 858bee1c77857aabcc2327cd32dd8266332de332; 43f2e3615d181a7028ab797114c5960977669b2a; a873146ce4fb025c0b5c1322af5a6bad042f5363; 02590fd855d1690568b2fa439c942e933221b57a; 55e97f654cbbbef70f9714f0e113604dd931e360; 3.10.83 преди 3.11; 3.12.45 преди 3.13; 3.14.47 преди 3.15; 3.18.19 преди 3.19
    • Linux Linux: 3.19; преди 3.19; 6.6.160 до 6.6.*; 6.12.113 до 6.12.*; 6.18.57 до 6.18.*; 7.2.11 до 7.2.*; от 7.3 нататък

    История

    • 23 октомври 2026 Публикувано

    Други уязвимости в Linux Linux

    Първоизточници

    CVE-2026-98959: Linux | freedomonline.bg