Software is never finished
Modern software contains millions of lines of code written by many people, and some of those lines will contain mistakes. Most bugs are merely annoying, causing a crash or a glitch. Some, however, are security vulnerabilities: errors that let an attacker do something they should not, such as run their own code, read private data or take control of a device. No major operating system, browser or app is free of them. Software makers therefore release updates throughout a product's life, and many publish security fixes on a regular schedule. The prompt asking you to restart and update is the visible end of a long process.
From discovery to patch
Vulnerabilities are found by the maker's own engineers, by independent security researchers, sometimes rewarded through bug-bounty programmes, and by criminals or intelligence agencies. Responsible researchers report flaws privately so a fix can be prepared before details become public. Many receive an identifier in a public catalogue known as CVE, for Common Vulnerabilities and Exposures, and a severity score. A flaw that attackers are already exploiting before any fix exists is called a zero-day, because the developer has had zero days to respond. Once a patch is ready, it is released, usually with a brief description of what it fixes. Users rarely see this behind-the-scenes work.
The race after release
Publishing a patch has an awkward side effect. Attackers can compare the old and new code to work out exactly what was fixed, and then target devices that have not yet updated. This is why the period just after a patch appears can be dangerous. A well-known example came in 2017, when ransomware called WannaCry spread rapidly around the world, encrypting files on hundreds of thousands of computers, including in hospitals, and demanding payment. It exploited a flaw in a common operating system that had been patched about two months earlier. Many of the affected machines simply had not been updated, or were running outdated systems.
More than security
Updates also fix ordinary bugs, improve battery life and performance, add features and support new hardware or standards. They sometimes introduce new problems too, which is why some people delay them. For businesses, testing updates before rolling them out widely is sensible, but delays should be measured in days or weeks rather than months for critical security fixes. For individuals, turning on automatic updates is the simplest protection. Updates for apps matter as much as the operating system, as do those for routers, smart televisions and other connected devices at home, which are often forgotten and can be an entry point for attackers.
When updates stop
Every device eventually reaches the end of its support period, after which the maker no longer releases security updates. Phones commonly receive support for several years, and some makers now promise considerably longer. A device past that point does not stop working, but every newly discovered flaw remains open forever. For a basic music player that may not matter; for a phone used for banking, government services and messaging, it matters a great deal. Before buying a device, especially a cheaper or older model, it is worth checking how long updates are promised. The answer affects the device's true value as much as its specifications.
Good habits
Security agencies give consistent advice: enable automatic updates where possible, install security updates promptly, restart devices when asked so updates take effect, and replace devices that no longer receive support. Download updates only from official sources, such as the device's settings menu or the official app store, because fake 'update' pop-ups on websites are a common way to spread malicious software. Keep backups, so that if an update or an attack causes trouble you can recover. Patching is rarely exciting, but it is among the most effective and cheapest defences available, protecting against a large share of attacks that rely on old, well-known weaknesses.
Sources & further reading
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



