Skip to content

Set a minimum kernel version #6774

Closed

Description

@smcv

While looking at the various security vulnerabilities seen recently, I've been thinking that Flatpak could benefit from documenting a minimum targeted kernel version.

Perhaps as a conservative starting point, 1.19.x could require Linux 5.10, the oldest LTS listed on https://kernel.org/? That would allow Ubuntu 22.04, Debian 11, RHEL 9 but rule out Ubuntu 20.04, Debian 10, RHEL 8, and would mean we can assume we have statx(), openat2(), faccessat() with AT_EMPTY_PATH, and basic pidfd support, among other nice things.

Activity

  1. smcv commented on Aug 13, 2026

    @smcv
    CollaboratorAuthor
  2. smcv commented on Aug 13, 2026

    @smcv
    CollaboratorAuthor

    At the moment I believe our minimum is 4.11, for statx(). (RHEL 8, Debian 10, Ubuntu 18.04, or Ubuntu 16.04 with HWE kernel backport, if my notes are accurate.)

  3. alexlarsson commented on Aug 14, 2026

    @alexlarsson
    Member

    I think this makes sense. We should document that older versions work with new flatpaks, and are usable for older systems (although those may not always get security updates).

  4. swick commented on Aug 14, 2026

    @swick
    Collaborator

    The big questions are where to put it, and how we ensure it keeps up-to-date.

  5. alexlarsson commented on Aug 14, 2026

    @alexlarsson
    Member

    We could put it in README.md

  6. tom--pollard commented on Aug 15, 2026

    @tom--pollard

    I think I'm seeing the an issue related to the statx() requirement hit on a 4.18 kernel here in freedesktop-sdk CI:

    https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/jobs/15914462888#L3880

    flatpak --arch=ppc64le run org.flatpak.GstreamerPlugins
    error: statx didn't return all required fields: No data available
    

    The ppc64le runner has a 4.18 kernel, and we're seeing this error introduced when testing with a container that bumps flatpak to 1.18.1 (https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/commit/77e3c50c8c6e0fbf0e08b3d09107b3b2db89f542). We've not seen the issue with 1.18.0 but I will double check

    I will double check the kernel version (we had an issue with crun recently, and the check then showed 4.18 containers/crun#2182)

    I can rebuild with 1.19.0 if that would be relevant, I will also doublecheck with flatpak reverted to 1.18.0

  7. tom--pollard commented on Aug 15, 2026

    @tom--pollard

    I think I'm seeing the an issue related to the statx() requirement hit on a 4.18 kernel here in freedesktop-sdk CI:

    https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/jobs/15914462888#[L3880](https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/jobs/15914462888#L3880)

    The ppc64le runner has a 4.18 kernel, and we're seeing this error introduced when testing with a container that bumps flatpak to 1.18.1. We've not seen the issue with 1.18.0

    I will double check the kernel version (we had an issue with crun recently, and the check then showed 4.18 containers/crun#2182)

    I can rebuild with 1.19.0 if that would be relevant, I will also doublecheck with flatpak reverted to 1.18.0

    So I've rebuilt the container (our beta4 target for 26.08) twice, one with a revert to 1.18.0 & one with an upgrade to 1.19.0:

    1.18.0: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/33870

    1.19.0: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/33869

    The revert to 1.18.0 resolves the problem and 1.19.0 still presents the issue, so that gives a bisect point to something intoduced1.18.1 (I can rebuild at any specific sha of flatpak on request)

    If piggybacking this issue isn't the correct place please let me know and I'll create a standalone issue, but as you were talking statx() and kernel requirements this seemed fitting. I double checked the kernel and it's reporting as 4.18.0-553.150.1.el8_10.ppc64le

    @alexlarsson @smcv

  8. smcv commented on Aug 15, 2026

    @smcv
    CollaboratorAuthor

    If piggybacking this issue isn't the correct place please let me know and I'll create a standalone issue

    Please do. This issue is about documentation and minimum requirements, your issue is a functional regression (although it might have to be resolved as "won't fix" or "can't fix" if the alternative would be re-introducing a security vulnerability).

    If your kernel was too old for statx(), you'd see ENOSYS, Function not implemented. What you are seeing instead is that statx() doesn't report all the fields required by glnx_chaseat() - I would guess that it's STATX_MNT_ID that is missing, which might require Linux 5.8.

    However, I did say, in the initial report of this issue,

    Perhaps as a conservative starting point, 1.19.x could require Linux 5.10, the oldest LTS listed on https://kernel.org/?

    and 4.18 is significantly older than that. So if you intend to be able to run Flatpak apps on a particular machine, please look into upgrading it sooner rather than later.

  9. added a commit that references this issue on Aug 17, 2026
    eb8733a
  10. added a commit that references this issue on Aug 19, 2026
    076391b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions