Ce mail provient de l'extérieur, restons vigilants

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


                            CERT-Renater

                Note d'Information No. 2026/VULN1153
_____________________________________________________________________

DATE                : 18/11/2026

HARDWARE PLATFORM(S): /

OPERATING SYSTEM(S): Systems running libFontenc versions prior to
                      1.1.10, libXfont versions prior to 2-2.0.10,
                      X.Org X server versions prior to 21.1.26, 
                     Xwayland versions prior to 24.1.15.

====================================================================
https://lists.x.org/archives/xorg/2026-November/062315.html
https://lists.x.org/archives/xorg/2026-November/062309.html
_____________________________________________________________________
======================================================================
X.Org Security Advisory: November 18, 2026 

Issues in libFontenc prior to libfontenc-1.1.10 and libXfont prior to
 libXfont2-2.0.10

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

1) CVE-2026-109908: X.Org libfontenc File Parsing Validation Failure

libfontenc's .enc encoding-file parser contains a heap out-of-bounds write
in setCode() (src/encparse.c). The destination index is computed as (from
>> 8) * row_size + (from & 0xFF), where row_size is taken straight from the
SIZE line of the encoding file and is never bounded, while the destination
buffer is allocated at a constant cap of 0x10000 entries.

A crafted .enc file makes the index exceed the allocation and writes past
it. The Xorg/Xwayland X server links libfontenc via libXfont2 and parses
.enc files in its own process during font rasterization.

Where the X server runs as root, a local user that places a font file and
an encoding file on a server-read font path can trigger the OOB write,
triggering potential local privilege escalation.

Fixed in: libfontenc-1.1.10
Fixes:
  - https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/commit/5920c6ee144fffff84b62f5b479171f734f15316

Acknowledgements:
    Adam Bedard working with TrendAI Zero Day Initiative

2) CVE-2026-109909: PCF Font Parsing Negative Skip Out-Of-Bounds Read

BufFileRawSkip() in libXfont accepts a signed int count parameter but
does not validate it for negative values. A crafted PCF font file can
supply a table offset that, when subtracted from the current file
position in pcfSeekToType(), wraps to a negative value due to unsigned
to signed integer conversion. The negative count passes the in-buffer
bounds check in BufFileRawSkip() (curoff + count <= fileoff is trivially
true when count is negative) and advances the buffer pointer backward
past the buffer start. Subsequent FontFileGetc() calls then dereference
the corrupted buffer pointer, reading from invalid heap memory or
unmapped pages.

An attacker who can cause the X server or any application using
libXfont to load a malicious PCF font file can trigger an
out-of-bounds heap read, potentially leaking sensitive information
from the process memory space via QueryFont responses, or crash the
process via a segmentation fault.

Fixed in: libXfont2-2.0.10
Fixes:
  - https://gitlab.freedesktop.org/xorg/lib/libxfont/-/commit/dc6c313071c8b2929b1bc165e40c8ba62737b576

Acknowledgements:
    Elias Myllymäki working with TrendAI Zero Day Initiative

3) CVE-2026-109920: libXfont2 FreeType backend uninitialised strike_index out-of-bounds read

FreeTypeOpenInstance() allocates FTInstanceRec with a bare malloc() and
then assigns instance->strike_index only inside an
"if (FT_IS_SFNT(face->face))" block.  There is no else branch.

A non-SFNT face -- any bitmap font that FreeType's own bitmap driver
claims, which libXfont2 reaches whenever such a file carries a FreeType
renderer suffix such as .pfb -- leaves the field holding raw heap bytes.

The field is then passed unchecked to FT_Do_SBit_Metrics() and used
directly as a 64-bit array subscript:

    FT_Bitmap_Size*  sz = &ft_face->available_sizes[strike_index];

The 0xFFFFU sentinel check on the previous line is not a bounds check:
it filters exactly one value out of 2^64, so a raw heap word almost
always passes it.  With num_fixed_sizes == 1 the only in-bounds
subscript is 0; any other value causes an out-of-bounds read that
crashes the X server.

A local client can reach this path with ordinary core protocol requests:
spray the server heap with ChangeProperty, point the font path at a
directory it controls with SetFontPath, then OpenFont.  The font file
does not need to be crafted -- an unmodified vendor-shipped .pcf font
renamed to .pfb is sufficient.

CWE-457 (use of uninitialised variable) leading to CWE-125
(out-of-bounds read).

Fixed in: libXfont2-2.0.10
Fixes:
  - https://gitlab.freedesktop.org/xorg/lib/libxfont/-/commit/539f716dabe0137097ed6b8492cae1c3321c4d69

Acknowledgements:
    Apex Security Research (apex-security-research at proton.me)

_____________________________________________________________________

========================================================================
X.Org Security Advisory: November 10, 2026

Issues in X.Org X server prior to xorg-server-21.1.26 and Xwayland
prior to xwayland-24.1.15
========================================================================

* CVE-2026-109091:
  X.Org Server EDID DS_RANGES Out-Of-Bounds Write

  The Xorg server records EDID Display-Range (DS_RANGES) descriptors
  into fixed-size MonRec hsync[] / vrefresh[] arrays without checking
  against MAX_HSYNC / MAX_VREFRESH. A malicious monitor or crafted EDID
  can supply extra descriptors that overrun those arrays and clobber
  adjacent MonRec fields (Modes, Last, DDC), causing an out-of-bounds
  write that can crash the server or corrupt memory.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/95cf222d
  Found by:  Eun0us / Espilon <eun0us at espilon.net>

* CVE-2026-109092:
  X.Org Server XvShmPutImage Shared-Memory Bounds Overflow

  ProcXvShmPutImage checked (size_needed + offset) against the SHM
  segment size. A negative size_needed from the DDX plus a crafted
  offset wraps that addition so the bounds check passes and an invalid
  source pointer is passed to PutImage, enabling an out-of-bounds
  read or write in the X server.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/71cba5e4
  Found by:  Acts1631 <acts1631kjv at proton.me>

* CVE-2026-109093:
  X.Org Server XTestFakeInput Valuator Stack Out-Of-Bounds Write

  ProcXTestFakeInput copied DeviceValuator fields into a fixed stack
  array (MAX_VALUATORS) before checking that the valuator range fits.
  Enough DeviceValuator events write past that array, which can crash
  the server or corrupt stack memory.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/43b4064a
  Found by: Acts1631 <acts1631kjv at proton.me>

* CVE-2026-109904:
  X.Org Server XRes QueryClientIds Request Size Overflow

  Proc/SProcXResQueryClientIds multiply numSpecs by the spec size
  before REQUEST_FIXED_SIZE without an overflow check. On 32-bit
  servers a large numSpecs wraps so a short request passes length
  validation and the handler reads past the request buffer, which can
  crash the server or leak/process unintended memory.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/6330d2f8
  Found by: Acts1631 <acts1631kjv at proton.me>

* CVE-2026-109094:
  X.Org Server XRes QueryResourceBytes Swap Path Size Overflow

  SProcXResQueryResourceBytes multiplied numSpecs by the spec size
  before REQUEST_FIXED_SIZE without an overflow check. On 32-bit
  servers a large numSpecs wraps and the swap loop walks past the
  request buffer, which can crash the server or corrupt memory.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/a77de309

* CVE-2026-109095:
  X.Org Server glamor Xv Image Size Integer Overflow

  glamor_xv_query_image_attributes() computed NV12 / YV12 image sizes
  with 32-bit ints. Large width/height values wrap to a small positive
  size, so protocol length checks can accept PutImage / ShmPutImage
  requests that lack the claimed payload, leading to out-of-bounds
  reads in the X server.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/1a84c543
  Found by: Tristan Madani (Talence Security)

* CVE-2026-109096:
  X.Org Server XvPutImage Negative Image Size Length Bypass

  When ddQueryImageAttributes() returns a negative size, ProcXvPutImage
  adds it to the header size so the length check can accept a request
  with no image payload, causing the server to process missing image
  data and potentially crash or misbehave.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/59bef993
  Found by: Tristan Madani (Talence Security)

* CVE-2026-109903:
  X.Org Server XvQueryImageAttributes Negative Size Reply

  When ddQueryImageAttributes() returns a negative size,
  ProcXvQueryImageAttributes still replies with that value cast to
  CARD32, advertising a bogus data_size instead of returning an error.
  Clients may then allocate or use the wrong buffer size based on that
  reply.

  Fixed in: xorg-server-21.1.26 and xwayland-24.1.15
  Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/bddd1a6a
  Found by: Tristan Madani (Talence Security)

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

X.Org thanks all of those who reported and fixed these issues, and those
who helped review and release this advisory and these fixes.


=========================================================
+ CERT-RENATER        |    tel : 01-53-94-20-44         +
+ 23/25 Rue Daviel    |    fax : 01-53-94-20-41         +
+ 75013 Paris         |   email:cert@support.renater.fr +
=========================================================




