Skip to content

Commit 464398a

Browse files
committed
I'm hotfixing this in surface-control because the kernel builds haven't been working for weeks. This hotfixes an escalation-to-root kernel vulnerability. Fixes: linux-surface/linux-surface#2090
1 parent 33d5bee commit 464398a

7 files changed

Lines changed: 20 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "surface"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["Maximilian Luz <luzmaximilian@gmail.com>"]
55
description = "Control various aspects of Microsoft Surface devices on Linux from the Command-Line"
66

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# https://askubuntu.com/a/1566257/1004020
2+
install algif_aead /bin/false

pkg/bin/makebin

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ package() {
7272
mkdir -p "$pkgdir/usr/lib/systemd/system/suspend.target.wants"
7373
ln -sT "../surface-rapl.service" "$pkgdir/usr/lib/systemd/system/suspend.target.wants/surface-rapl.service"
7474

75+
# hotfixes
76+
install -D -m644 "etc/modprobe.d/surface-disable-algif.conf" "$pkgdir/etc/modprobe.d/surface-disable-algif.conf"
77+
7578
# copy license
7679
install -D -m644 "LICENSE" "$pkgdir/LICENSE"
7780

pkg/deb/debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
surface-control (0.5.1-1) unstable; urgency=medium
2+
3+
* Hotfix kernel CVE-2026-31431
4+
5+
-- Daniel Tang <danielzgtg.opensource@gmail.com> Thu, Apr 30 2026 04:32:59 2026 -0400
6+
17
surface-control (0.5.0-1) unstable; urgency=medium
28

39
* Add systemd service to disable Intel RAPL PL4 on resume

pkg/deb/debian/rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ override_dh_install:
2828
mkdir -p "${pkgdir}/usr/lib/systemd/system/suspend.target.wants"
2929
ln -sT "../surface-rapl.service" "${pkgdir}/usr/lib/systemd/system/suspend.target.wants/surface-rapl.service"
3030

31+
# hotfixes
32+
install -D -m644 "etc/modprobe.d/surface-disable-algif.conf" "${pkgdir}/etc/modprobe.d/surface-disable-algif.conf"
3133
%:
3234
dh $@

pkg/fedora/surface-control.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: surface-control
2-
Version: 0.5.0
2+
Version: 0.5.1
33
Release: 1%{?dist}
44
Summary: Control various aspects of Microsoft Surface devices from the shell
55

@@ -33,6 +33,7 @@ install -D -m644 "target/_surface" "%{buildroot}/usr/share/zsh/site-functions/_s
3333
install -D -m644 "target/surface.fish" "%{buildroot}/usr/share/fish/vendor_completions.d/surface.fish"
3434
install -D -m644 "target/systemd/surface-rapl.service" "%{buildroot}/usr/lib/systemd/system/surface-rapl.service"
3535
install -D -m744 "target/systemd/surface-rapl.sh" "%{buildroot}/usr/libexec/surface-rapl.sh"
36+
install -D -m644 "etc/modprobe.d/surface-disable-algif.conf" "%{buildroot}/etc/modprobe.d/surface-disable-algif.conf"
3637

3738
%files
3839
/usr/bin/surface
@@ -43,6 +44,9 @@ install -D -m744 "target/systemd/surface-rapl.sh" "%{buildroot}/usr/libexec/surf
4344
/usr/libexec/surface-rapl.sh
4445

4546
%changelog
47+
* Thu Apr 30 2026 Daniel Tang <danielzgtg.opensource@gmail.com> - 0.5.1-1
48+
- Hotfix kernel CVE-2026-31431
49+
4650
* Sun Jan 25 2026 Maximilian Luz <luzmaximilian@gmail.com> - 0.5.0-1
4751
- Add systemd service to disable Intel RAPL PL4 on resume
4852

0 commit comments

Comments
 (0)