Description
Freeciv versions 3.1.0 through 3.2.5 contain an out-of-bounds read vulnerability in sg_load_player_unit() when processing savegame files with invalid unit activity indices. An attacker can craft a malicious savegame file with an out-of-range activity index that bypasses bounds checking and causes a crash or limited heap memory exposure when loaded.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| freeciv | freeciv | 3.1.0 – < 3.2.6 | 3.2.6 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | freeciv | 3.2.6+ds-1 | — |
| Debian 13 | freeciv | No fix yet | — |
| Debian 12 | freeciv | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | freeciv | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | freeciv | No fix yet | — |
| Ubuntu Pro 22.04 LTS | freeciv | No fix yet | — |
| Ubuntu Pro 20.04 LTS | freeciv | No fix yet | — |
| Ubuntu Pro 18.04 LTS | freeciv | No fix yet | — |
| Ubuntu Pro 16.04 LTS | freeciv | No fix yet | — |
References
- Patch Commit patch
- https://github.com/freeciv/freeciv product
- https://redmine.freeciv.org/issues/2162 issue-tracking
- https://github.com/freeciv/freeciv/blob/R3_2_5/server/savegame/savegame3.c#L6108 technical-description
- freeciv R3_2_6 Release Notes release-notes
- https://github.com/freeciv/freeciv/blob/R3_2_5/server/savegame/savegame2.c#L4282 technical-description
- VulnCheck Advisory: Freeciv 3.1.0 through 3.2.5 Out-of-Bounds Read via Savegame third-party-advisory