Google: sys-kernel/cchost-kernel-6_18, sys-kernel/csql-kernel-6_18, sys-kernel/lakitu-kernel-6_18, sys-kernel/lakitu-nc-kernel-6_18: security update to 20346.0.42

medium Tenable Cloud Security Plugin ID 499858

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate hang in large
swap entry Truncating a tmpfs file or memfd to a page-aligned size inside a large swap entry can loop
indefinitely in shmem_undo_range(). The task holds the inode lock and cannot be killed. A large swap entry
represents a whole swapped-out folio. For example, truncate a file whose pages 0-7 share one swap entry to
four pages: [ 0 1 2 3 | 4 5 6 7 ] keep | discard ^ new EOF, start = 4 i_size has already been updated when
boundary handling asks shmem_get_partial_folio() for page 4. Since it is swapped out, the helper calls
shmem_get_folio() with SGP_READ. That rejects page 4 with -EINVAL because its starting offset equals
i_size. Nothing is read back. The final scan cannot free the entry without losing pages 0-3. It skips it,
restarts from start = 4, and finds it again indefinitely. An unaligned truncate avoids this particular
failure because the requested page starts below i_size. Folios already in the page-cache cannot trigger it
as the direct lookup will return them beyond EOF. Fix it by letting shmem_get_partial_folio() call
shmem_swapin_folio() directly for swap entries. This bypasses the read path's i_size check, allowing the
existing boundary handling to zero and split the folio. If swap-in returns a smaller folio, it also splits
the swap entry so the final scan can free the entries beyond EOF. Retry the lookup if the entry changes
during swap-in. Handling swap-in allocation failures remains broken and is unchanged by this commit. Even
when shmem_swapin_folio() correctly returns -ENOMEM instead of -EEXIST, shmem_get_partial_folio() returns
NULL and shmem_undo_range() skips boundary handling. If the large swap entry remains intact, truncation
can still loop in the final scan, while hole punching can return without zeroing the boundary. This may
read an entire large folio back from swap while holding i_rwsem, only to discard part of it. Avoiding that
I/O would require splitting both the swap entry and any large folio still in the swap cache. That,
however, is much bigger work. (CVE-2026-99739)

Solution

Update the sys-kernel/cchost-kernel-6_18 library and its related packages to version 20346.0.42 or later.

See Also

https://storage.googleapis.com/cos-oval-vulnerability-feed/cos-138.oval.xml.tar.gz

Plugin Details

Severity: Medium

ID: 499858

Version: Revision 1.1

Type: Local

Published: 12/4/2026

Updated: 12/4/2026

Risk Information

VPR

Risk Factor: Medium

Score: 5.7

Percentile: 95.47

Vendor

Vendor Severity: LOW

CVSS v2

Risk Factor: Low

Base Score: 1.9

Temporal Score: 1.4

Vector: CVSS2#AV:L/AC:M/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2026-99739

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 11/20/2026

Reference Information

CVE: CVE-2026-99739