Security
IBM's homomorphic encryption library
IBM has released a new GPL-licensed encryption library called HElib which boasts the property of being fully homomorphic. This means that the encrypted message can be manipulated (subject to certain constraints), and the transformations applied to it will propagate correctly to the plaintext message. For example, given a number n and its encrypted "ciphertext" E(n), a homomorphic encryption scheme might allow you to multiply by a constant, and decrypting 42 * E(n) would give you 42 * n.
Exactly which operations preserve this property varies with the encryption scheme used. Schemes which are partially homomorphic preserve the homomorphic property only for addition or for multiplication, but not both. A fully homomorphic scheme preserves computation for both addition and multiplication, which is considerably more powerful. Such a system also preserves the useful algebraic properties of a ring:
- The associative property of addition: (a + b) + c = a + (b + c)
- The commutative property of addition: a + b = b + a
- The associative property of multiplication: (a * b) * c = a * (b * c)
- The distributive property: a * (b + c) = (a * b) + (a * c)
In short, with a fully homomorphic encryption scheme, you can perform a wide variety of computations on a file without decrypting it first. Consequently, untrusted programs can operate on encrypted data without risking the disclosure of its information. Remote servers could adjust financial documents without knowing their contents (for example, crediting an account, or computing sales tax on a purchase), voting machines could track totals without disclosing what the intermediate counts are, sensitive databases can be recklessly stored on public web sites, and so on (well, perhaps not that final example). There are several well-known cryptosystems which are partially homomorphic; for example, RSA encryption is homomorphic over multiplication only. But only recently have there been practical systems that are fully homomorphic.
The downside is that the few known fully homomorphic systems are considerably slower than are partially homomorphic schemes. The very first was described in 2009 by Craig Gentry. It used lattice-based cryptography, but it was not particularly practical, because the complexity of the operations needed scaled exponentially with the degree of attack-resistance desired. Just as importantly, the tendency is for ciphertext in a homomorphic encryption scheme to get longer (often drastically longer) every time additional operations are applied to it. Thus, the scheme was inefficient in space as well as in time. Gentry's original method also involved setting up an initial lattice that is "somewhat" homomorphic (meaning that it is very limited in the functions that it can be used to evaluate), then "bootstrapping" it by iteratively improving it. Subsequent advances allowed faster computation of Gentry's original method, eliminating bootstrap stages and replacing some of the lattice-based operations with integer math.
HElib implements Brakerski-Gentry-Vaikuntanathan (BGV) encryption, first published in 2011 by Zvika Brakerski, Gentry, and Vinod Vaikuntanathan. It too is a derivative of Gentry's work, building on several intermediate schemes devised during the years in between. HElib also incorporates a number of speed optimizations, including single instruction, multiple data (SIMD) operations to parallelize some encryption steps, and other methods for keeping the ciphertext as compact as possible (thus making it faster to process). For a bit of real-world comparison, one commenter on the Hacker News coverage of the release looked at the results described in one of the optimization papers and estimated that computing AES-128 rounds was about 10 billion times slower in the homomorphic system than when using the straightforward mathematical approach.
HElib is written in C++ using the NTL mathematical library. Currently, one does need to have a good understanding of homomorphic encryption to make much use of HElib—one does not simply pipe a text file to it and drag the result into a spreadsheet cell. So its importance is more about the impact that will be felt in the long term than it is about the prospect of drag-and-drop homomorphic encryption for the average user.
In the future, homomorphic storage might make sense in databases or in a number of different places where a form of "write only" access is desirable. An example is the voting-machine scenario mentioned above. The voting machine's tally for each candidate can be encrypted, so no intruder can read the result. But each voter's ballot can add an encrypted 1 to their selection and an encrypted 0 to each of the others. The voter could theoretically decrypt his or her ballot and verify its contents, but no one else can; the count in the machine is still incremented correctly, without ever needing to be in possession of the ballot in plaintext form. The same approach could be applied to secure event logging, message routing, or any number of other tasks.
Even if practical applications remain years away, it is a big win that HElib is being made available to the public under the GPL, rather than debuting in a proprietary tool. For decades, homomorphic encryption was not even known to be possible; now there is considerable work still remaining in order to develop a practical tool (as well as scrutiny by other cryptographers to analyze the scheme for overlooked weaknesses)—but there is also working code where before there was not.
Brief items
Security quotes of the week
Before we start blaming agencies for failing to stop the Boston bombers, and before we push "intelligence reforms" that will shred civil liberties without making us any safer, we need to stop seeing the past as a bunch of obvious dots that need connecting.
Garrett: A short introduction to TPMs
Matthew Garrett has posted an introduction to the trusted platform module (TPM) chip and what can be done with it. "I've been working on TPMs lately. It turns out that they're moderately awful, but what's significantly more awful is basically all the existing documentation. So here's some of what I've learned, presented in the hope that it saves someone else some amount of misery."
Remote execution vulnerability in nginx
The nginx web server suffers from a remotely exploitable buffer overflow that can lead to the execution of arbitrary code. Versions 1.4.1 and 1.5.0 contain the fix; there is also a workaround in the announcement. This seems like a good one to apply quickly.Linux Security Summit CFP
James Morris has announced the CFP for the 2013 Linux Security Summit. The CFP is open until 14 June and the summit will be held on September 19 and 20 in New Orleans, Louisiana, co-located with LinuxCon North America and the Linux Plumbers Conference (it overlaps the latter). "We'll be following a similar format to last year, with a day of refereed presentations, followed by subsystem updates and break-out sessions on the second day." We have covered previous Linux Security Summits and hope to do so again this year.
New vulnerabilities
drupal: denial of service
| Package(s): | drupal | CVE #(s): | CVE-2013-0316 | ||||||||||||
| Created: | May 3, 2013 | Updated: | May 8, 2013 | ||||||||||||
| Description: | From the Mageia advisory: Drupal core's Image module allows for the on-demand generation of image derivatives. This capability can be abused by requesting a large number of new derivatives which can fill up the server disk space, and which can cause a very high CPU load. Either of these effects may lead to the site becoming unavailable or unresponsive (CVE-2013-0316). | ||||||||||||||
| Alerts: |
| ||||||||||||||
gogoc: not built with PIE flag
| Package(s): | gogoc | CVE #(s): | |||||
| Created: | May 6, 2013 | Updated: | May 8, 2013 | ||||
| Description: | From the Red Hat bugzilla:
http://fedoraproject.org/wiki/Packaging:Guidelines#PIE says that "you MUST enable the PIE compiler flags if your package is long running ...". This update enables PIE in the build. | ||||||
| Alerts: |
| ||||||
kernel: multiple vulnerabilities
| Package(s): | linux | CVE #(s): | CVE-2012-6549 CVE-2013-1848 CVE-2013-2634 CVE-2013-2635 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Created: | May 2, 2013 | Updated: | July 18, 2013 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description: | From the Ubuntu advisory: Mathias Krause discovered an information leak in the Linux kernel's ISO 9660 CDROM file system driver. A local user could exploit this flaw to examine some of the kernel's heap memory. (CVE-2012-6549) A format-string bug was discovered in the Linux kernel's ext3 filesystem driver. A local user could exploit this flaw to possibly escalate privileges on the system. (CVE-2013-1848) An information leak in the Linux kernel's dcb netlink interface was discovered. A local user could obtain sensitive information by examining kernel stack memory. (CVE-2013-2634) A kernel stack information leak was discovered in the RTNETLINK component of the Linux kernel. A local user could read sensitive information from the kernel stack. (CVE-2013-2635) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kernel: privilege escalation
| Package(s): | kernel | CVE #(s): | CVE-2013-1959 | ||||
| Created: | May 3, 2013 | Updated: | May 9, 2013 | ||||
| Description: | From the CVE entry: kernel/user_namespace.c in the Linux kernel before 3.8.9 does not have appropriate capability requirements for the uid_map and gid_map files, which allows local users to gain privileges by opening a file within an unprivileged process and then modifying the file within a privileged process. | ||||||
| Alerts: |
| ||||||
mesa: code execution
| Package(s): | mesa | CVE #(s): | CVE-2012-5129 | ||||||||||||||||
| Created: | May 7, 2013 | Updated: | May 13, 2013 | ||||||||||||||||
| Description: | From the Ubuntu advisory:
It was discovered that Mesa incorrectly handled certain arrays. An attacker could use this issue to cause Mesa to crash, resulting in a denial of service, or possibly execute arbitrary code. | ||||||||||||||||||
| Alerts: |
| ||||||||||||||||||
phpmyadmin: multiple vulnerabilities
| Package(s): | phpmyadmin | CVE #(s): | CVE-2013-3238 CVE-2013-3239 | ||||||||||||||||||||||||
| Created: | May 3, 2013 | Updated: | May 9, 2013 | ||||||||||||||||||||||||
| Description: | From the Mageia advisory: In some PHP versions, the preg_replace() function can be tricked into executing arbitrary PHP code on the server. This is done by passing a crafted argument as the regular expression, containing a null byte. phpMyAdmin does not correctly sanitize an argument passed to preg_replace() when using the "Replace table prefix" feature, opening the way to this vulnerability (CVE-2013-3238). phpMyAdmin can be configured to save an export file on the web server, via its SaveDir directive. With this in place, it's possible, either via a crafted filename template or a crafted table name, to save a double extension file like foobar.php.sql. In turn, an Apache webserver on which there is no definition for the MIME type "sql" (the default) will treat this saved file as a ".php" script, leading to remote code execution (CVE-2013-3239). | ||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||
python-pip: insecure tempdir usage
| Package(s): | python-pip | CVE #(s): | CVE-2013-1888 | ||||||||||||||||||||
| Created: | May 6, 2013 | Updated: | September 13, 2013 | ||||||||||||||||||||
| Description: | From the Fedora advisory:
1.3.1, fix for CVE-2013-1888, insecure tempdir usage. See the pip changelog for details. | ||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||
subscription-manager: man-in-the-middle attack
| Package(s): | subscription-manager | CVE #(s): | CVE-2012-6137 | ||||
| Created: | May 7, 2013 | Updated: | May 8, 2013 | ||||
| Description: | From the Red Hat advisory:
It was discovered that the rhn-migrate-classic-to-rhsm tool did not verify the Red Hat Network Classic server's X.509 certificate when migrating system profiles registered with Red Hat Network Classic to Certificate-based Red Hat Network. An attacker could use this flaw to conduct man-in-the-middle attacks, allowing them to obtain the user's Red Hat Network credentials. | ||||||
| Alerts: |
| ||||||
telepathy-idle: certificate validation error
| Package(s): | telepathy-idle | CVE #(s): | CVE-2007-6746 | ||||||||||||||||||||||||
| Created: | May 3, 2013 | Updated: | June 10, 2013 | ||||||||||||||||||||||||
| Description: | From the Red Hat bug report: It was reported [1],[2] that telepathy-idle, an IRC backend for the Telepathy framework, did not check the server's SSL/TLS certificate for validity [3]. This could allow an attacker to carry out man-in-the-middle attacks. This flaw has existed in the source since 2007, and versions 0.1.11 through to 0.1.14 use GLib for TLS, so they did very basic checks on certificates, but did not check that the certificate issuer was a trusted CA, that the identity matched the server's hostname, or that the certificate had not expired. The forthcoming 0.1.15 release will fix this flaw; a patch is attached to the upstream bug [4]. | ||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||
webmin: multiple vulnerabilities
| Package(s): | webmin | CVE #(s): | CVE-2012-2981 CVE-2012-2982 CVE-2012-2983 CVE-2012-4893 | ||||||||
| Created: | May 3, 2013 | Updated: | March 17, 2014 | ||||||||
| Description: | Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary Perl code via a crafted file associated with the type (aka monitor type name) parameter. (CVE-2012-2981) file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid character in a pathname, as demonstrated by a | (pipe) character. (CVE-2012-2982) file/edit_html.cgi in Webmin 1.590 and earlier does not perform an authorization check before showing a file's unedited contents, which allows remote attackers to read arbitrary files via the file field. (CVE-2012-2983) Multiple cross-site request forgery (CSRF) vulnerabilities in file/show.cgi in Webmin 1.590 and earlier allow remote attackers to hijack the authentication of privileged users for requests that (1) read files or execute (2) tar, (3) zip, or (4) gzip commands, a different issue than CVE-2012-2982. (CVE-2012-4893) Additionally: Input passed via the real name field is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site. (fixed in webmin 1.600) | ||||||||||
| Alerts: |
| ||||||||||
xen: privilege escalation
| Package(s): | xen | CVE #(s): | CVE-2013-1964 | ||||||||||||||||||||||||
| Created: | May 6, 2013 | Updated: | May 13, 2013 | ||||||||||||||||||||||||
| Description: | From the xen advisory:
When releasing a non-v1 non-transitive grant after doing a grant copy operation, Xen incorrectly recurses (as if for a transitive grant) and releases an unrelated grant reference. A malicious guest administrator can cause undefined behaviour; depending on the dom0 kernel a host crash is possible, but information leakage or privilege escalation cannot be ruled out. | ||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||
Page editor: Jake Edge
Next page:
Kernel development>>
